Back to problems

Gaussian Image Filter

Algorithm · Luma AI · Medium

Problem: Gaussian Image Filter Without relying on third-party libraries, write a program that applies a two-dimensional Gaussian filter to a grayscale image image. The filter is defined by an odd kernel width K and a standard deviation sigma. For a kernel position displaced from its center by (dx, dy), use this weight: At each pixel, calculate the weighted mean of the pixels in its K x K neighborhood. When the neighborhood extends beyond an image edge, replicate the edge…

Loading the rest of the question…