Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Adaptative Gaussian Filter.

Hello, i wanna apply a Gaussian kernel to the image, but the thing is .... just to a certain part. I have a big image, 2064/1544 +/-, most of the image is black and i don't need it. Gaussian blur apply th kernel to the full image and takes time, although i have made a custom Gaussian for my problem.

My cycling to each pixel : 1. check if pixel its over a Threshold value. 2. if positive apply Gaussian kernel to the surroundings.

My code works correctly and if i get a TH value to 0, i got the same result as the Gaussian blur function, Gaussian Blur is always faster.

Question: there is already a function like this!? Question: If not , how can i optimize my code!?