I am writing a C ++ application using OpenCV to apply a Gaussian filter to individual pixels in an image. For example, I look at each pixel in the image and, if it corresponds to a certain RGB value, I want to apply the Gaussian algorithm only to these pixels, so that blurring occurs only around those parts of the image.
However, I was having trouble finding a way to do this. The GaussianBlur() function, offered by the OpenCV library, allows me to blur the whole image, and not just apply the algorithm and the kernel to one pixel at a time. Does anyone have any ideas on how I can achieve this (for example, is there another method that I don't know about)? I hope that I donβt need to write the whole algorithm myself to apply it to one pixel.
source share