Smoothing Mat of float with mask
Is there a way to apply a Gaussianblur or median smoothing filter to a mat of floating points while supplying a mask of pixels that should be ignored? could you please help me? ty. You can do this by: Zeroing out the regions outside the mask Smooth the image and the mask Divide each pixel in the smoothed image with the value of the smoothed mask The division in step 3 compensates for the black pixels introduced by masking. This works because the smoothed mask is darkened in the same way as the smoothed masked image. Yeah, so i figured it out. I had to define my own gaussian smoothing procedure