Average pixels along the edge

asked 2019-02-11 08:32:27 -0600

updated 2019-12-09 08:05:11 -0600

Akhil Patel gravatar image

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!

edit retag flag offensive close merge delete

Comments

1

what have you tried, on your own, so far ? can you show us anything ?

berak gravatar imageberak ( 2019-02-11 08:35:40 -0600 )edit
1

May be you can try to apply each python tutorials on your image

LBerger gravatar imageLBerger ( 2019-02-11 09:02:39 -0600 )edit