Yax
Yax

Reputation: 436

OpenCV - Access to pixels along the curve/path

is there any way to access pixels along the specified curve/path in OpenCV?

I've found LineIterator: http://opencv.willowgarage.com/documentation/cpp/core_drawing_functions.html?highlight=lineiterator#LineIterator but it's limited to lines. I would like to find something similar to LineIterator, but working with circles, since I need to read the pixels along the circle, or ellipse.

Upvotes: 2

Views: 2282

Answers (1)

etarion
etarion

Reputation: 17151

It is not builtin to opencv, but you can use http://en.wikipedia.org/wiki/Midpoint_circle_algorithm for circles, the article also mentions a paper that describes an extention to ellipses.

Upvotes: 2

Related Questions