Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Calculate histogram along line

Hi,

I have a binary image and I would like to determine the amount of white pixels along different angles. Let`s say the starting Point (F) is at the middle of the bottom row. Based on this 0° means all white pixels to the right of F and 180° means all white pixels to the left of F in the bottom row. So at the end I would like to have a histogram with x-axis holding the angle (from 0 to 180) and y-axis the number of white pixels.

Is this possible with the OpenCV calcHistogram function? Or do you have any idea how to do this efficiently?

Hope you understand the problem since I`m not allowed(?) to add images here.

Thank you.

Calculate histogram along line

Hi,

I have a binary image and I would like to determine the amount of white pixels along different angles. Let`s say the starting Point (F) is at the middle of the bottom row. Based on this 0° means all white pixels to the right of F and 180° means all white pixels to the left of F in the bottom row. So at the end I would like to have a histogram with x-axis holding the angle (from 0 to 180) and y-axis the number of white pixels.

Is this possible with the OpenCV calcHistogram function? Or do you have any idea how to do this efficiently?

Hope you understand the problem since I`m not allowed(?) to add attach images here.

Thank you.