Problem with Arclength function

asked 2015-10-04 21:35:06 -0600

xyansdu gravatar image

I used Arclength to calculate curve length, but I found that the results are much larger than the real length. So is the perimeter for closed contour, I think. I wonder whether the area calculation is correct or not.

edit retag flag offensive close merge delete

Comments

Can you describe your problem with a Sample(Image)? & your results?

Balaji R gravatar imageBalaji R ( 2015-10-05 00:23:20 -0600 )edit

Have you seen the closed parameter? Have you tried to use it? Does it works, or the length is the same no matter if the flag is set or not?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-10-05 02:57:06 -0600 )edit
1

Thanks for your reply, I tried it, both closed and not closed. However, it didn't work. I guess it is because of the data storing structure in contour. Too many repeated pixels and the storing order is not strict neighbor to neighbor. I manually coded to calculate the length.

xyansdu gravatar imagexyansdu ( 2015-10-05 05:33:59 -0600 )edit

It is known that the area function is not the real area but the Green function, as discussed in this topic, so yes it can deviate from the actual area in pixels.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-10-05 06:06:33 -0600 )edit