Ask Your Question

Revision history [back]

Average pixels along the edge

Hi everyone!

I have a picture of the line projected by the DLP projector onto the screen.

image description

My aim is to to get rid from the horizontal black spaces between the pixels.

After that I want to find maximums along the perpendiculars in all points of the left edge. Then I want to give to every pixel, that lie on each perpendicular after the corresponding maximal pixel, the maximal value along this perpendicular to the edge. It will be my first image.

To obtain another image I want to find maximums along the perpendiculars in all point of the right edge. Then I want to give to every pixel, that lie on each perpendicular before the corresponding maximal pixel, the maximal value along this perpendicular to the edge. It will be my second image.

In other words, I want to have two pictures. The first one must contain the dark left side and the bright right side. The second one must contain the bright left side and the dark right side. I need to have blurred edges on both images.

I am new to OpenCV. Could somebody suggest the solution, please? I use OpenCV-Python.

Thank you!

click to hide/show revision 2
retagged

Average pixels along the edge

Hi everyone!

I have a picture of the line projected by the DLP projector onto the screen.

image description

My aim is to to get rid from the horizontal black spaces between the pixels.

After that I want to find maximums along the perpendiculars in all points of the left edge. Then I want to give to every pixel, that lie on each perpendicular after the corresponding maximal pixel, the maximal value along this perpendicular to the edge. It will be my first image.

To obtain another image I want to find maximums along the perpendiculars in all point of the right edge. Then I want to give to every pixel, that lie on each perpendicular before the corresponding maximal pixel, the maximal value along this perpendicular to the edge. It will be my second image.

In other words, I want to have two pictures. The first one must contain the dark left side and the bright right side. The second one must contain the bright left side and the dark right side. I need to have blurred edges on both images.

I am new to OpenCV. Could somebody suggest the solution, please? I use OpenCV-Python.

Thank you!