Ask Your Question

MarkH's profile - activity

2019-12-20 11:29:08 -0600 asked a question Straighten Curved Contour ROI

Straighten Curved Contour ROI I have a camera pointed at a sphere which I am using cv2.findContours I would like to ac

2018-11-24 05:00:04 -0600 received badge  Popular Question (source)
2016-07-08 14:25:25 -0600 received badge  Nice Question (source)
2014-03-10 14:17:54 -0600 commented question Fastest Method to Loop Through Contour Pixels

What you described is the method I am using. I was wondering if there was faster method than creating a grayscale mask from cvDrawContours to isolate a contours pixels.

2014-03-10 06:31:28 -0600 received badge  Student (source)
2014-03-09 20:47:31 -0600 asked a question Fastest Method to Loop Through Contour Pixels

I am looking for the fastest way to iterate through the pixels in a contour.

I am currently creating a new grayscale and then using the function cvDrawContours to fill in the contours pixels in the grayscale. Next, I loop through contours min area rectangle pixels skipping the pixels which are not filled in with the grayscale.

This seems a bit inefficient, is there a better method???