# I want to use 1D guided filter?

I need to apply 1D guided filter for the image denoising. In Matlab implementation, I can define a window of N-1 for the guided filter. But in python version of open cv, I can define a radius for Guided Filter. Would you please help me how can I use this filter for 1D filtering?

Could you be more specific? Are you referring to this: https://docs.opencv.org/3.4/de/d73/cl... and this: https://www.mathworks.com/help/images...

Yes. In python, I try to use link text. But you mentioned the correct version in Matlab

When you look at line 160-164 in: https://github.com/opencv/opencv_cont... I assume that OpenCV also uses a window for the filter defined by the radius. The window looks like (2 * radius + 1, 2 * radius + 1). So if you choose a radius of 4 you will get a window of 9x9. The radius is a function parameter of the

`boxFilter`

and since the Normalize Flag is set on "true" the whole filter kernel is multiplied with an alpha specified here: https://docs.opencv.org/3.0-beta/modu...Thank you for your consideration. I understand your explanation. How, should I change this default square size to windows like 1*N? would you please give one example?

Thank you for your consideration. I understand your explanation. How, should I change this default square size to windows like 1*N? would you please give one example?