MATLAB: Reset value of pixels of side of imagine line.
image processing
Hi.
I have two known coordinates in a colorful image. I wanna reset value of pixels in one side of the line. for more clarifying, I've shown my process in following picture.
any help would be appreciated.
Best Answer
You can use the coordinates to get slope and intercept of the dividing line. From there you could work row by row zeroing out the pixels to the right of where the slope meets the row; or you could vectorize it all using ndgrid or meshgrid on indexing matrices...
You need to find the function adjcontrast() and make sure it's in the current folder or elsewhere on the search path. If you can't find it then maybe you can write your own using imadjust().
Best Answer