Is there a function to average (mean) filter for a pixel?
Hello everyone,
I have a 640x480 pixels photo.
I'm considering applying an average(mean) filter for the example (105,145) pixel.
Opencv have cv2.blur() function.
But this function applies average filter to all pixels.
I want to apply it to any pixel.
Does anyone have any suggestions?
Thanks.
please explain, what the mean of a single pixel should be (it does not make any sense to me)
did you mean: filtering a small region, a roi ?
Sorry for not telling you. E.g. I have a 100x100 pixels photo. The pixel in the 50. row and 50. column of the photo has no value. But other pixels have value. I want to find this value using the average of the pixels that are close to its surroundings.
In other words, I want to assign RGB value to the 50. row and 50. column based on the pixels around it.