Ask Your Question
0

Horizontal projection of area between 2 circles

asked 2019-05-30 08:48:45 -0600

I use OpenCV library with python. I would like to make an horizontal projection of area between two circles. As show in image below.

image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-06-04 08:12:55 -0600

One Opencv tool you should try is lineIterator. Create some radial lines and step across the boundary of the bottle opening. Look at the pixel values and the change in pixel values at each step. We call this a line profile. Below are some plots of a few of these line profiles. Most have a significant "valley" that looks like the area you are interested in.

image description

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-05-30 08:48:06 -0600

Seen: 290 times

Last updated: Jun 04 '19