How i can eleborate the Array of Contours?

asked 2015-09-10 03:26:46 -0600

Nikre93 gravatar image

Hi, I have a problem: done the recognition of a particular color, and make the countours, i would like take the point of countours that are positioned on the top of the image. I need this point (x, y, coordinates) for draw a simple line. What kind of object are the elements of the array of countours?

Thx for help

edit retag flag offensive close merge delete

Comments

sturkmen gravatar imagesturkmen ( 2015-09-10 03:32:05 -0600 )edit

thx, i'm working on...

Nikre93 gravatar imageNikre93 ( 2015-09-10 04:01:04 -0600 )edit

It depends what properties of your contour you would like to capture. If the center of gravity is enough, then you can get that using the Moments of the contour, like described here.

StevenPuttemans gravatar imageStevenPuttemans ( 2015-09-11 06:45:39 -0600 )edit