Pixels in the region of interest (ROI)
Hello, could someone help me, I'm new to OpenCV and would like to know how to change a pixel of an roi to another. My program opens an image, divides the image into rectangles with the rectangle function, and would like to know how to change a few pixels from the edges of rectangle. From already, thank you.
so, you've drawn a grid onto your image. and now ? it's a bit unclear, what you want to do from here on.
could you edit , and be a bit more specific ?
Then I drew a grid on my image and now I want to change a few pixels that are on the edge of the rectangles, rectangle to another, for example, that the pixel at position (0.159) belongs to ROI1 and I want to put it in ROI2 ...