Provides operation of Filtering on Input Images
img_ret=cv_filter2D(image,depth,kernel_type,kernel_size)
It is Input Image which is to be Filtered
the output image depth (-1 to use src.depth()).
It accepts Integer/Float as Input 1->MORPH_RECT 2-> MORPH_ELLIPSE 3-> MORPH_CROSS
It accepts a list as input specifying the size of Kernel needed example (5,5)
Image after filtering
Provides 2D filtering using Kernel.
As in one-dimensional signals, images also can be filtered with various low-pass filters(LPF), high-pass filters(HPF) etc. LPF helps in removing noises, blurring the images etc. HPF filters helps in finding edges in the images.