OpenCV Filters - copyMakeBorder

Forms a border around an image. C++: void copyMakeBorder(InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, const Scalar& value=Scalar() ) Python: cv2.copyMakeBorder(src, top, bottom, left, right, borderType[, dst[, value]]) → dst C: void cvCopyMakeBorder(const CvArr* src, CvArr* dst, CvPoint...
Continue Reading...

OpenCV Image Filtering

This article describes OpenCV Image filtering functions with code examples and sample images. Adaptive Bilateral Filter - cv::adaptiveBilateralFilter Bilateral Filter - cv::bilateralFilter Blur - cv::blur Box Filter - cv::boxFilter Build Pyramid - cv::buildPyramid copyMakeBorder - cv::copyMakeBorder ...
Continue Reading...

OpenCV Filters - boxFilter

Blurs an image using the box filter. C++: void boxFilter(InputArray src, OutputArray dst, int ddepth, Size ksize, Point anchor=Point(-1,-1), bool normalize=true, int borderType=BORDER_DEFAULT ) Python: cv2.boxFilter(src, ddepth, ksize[, dst[, anchor[, normalize[, borderType]]]]) → dst Parameters: src – input image. dst – output image...
Continue Reading...

OpenCV Filters - buildPyramid

Constructs the Gaussian pyramid for an image. C++: void buildPyramid(InputArray src, OutputArrayOfArrays dst, int maxlevel, int borderType=BORDER_DEFAULT ) Parameters: src – Source image. Check pyrDown() for the list of supported types. dst – Destination vector of maxlevel+1 images of the same type as src . dst[0] will be the...
Continue Reading...

OpenCV Filters - bilateralFilter

Applies the bilateral filter to an image. C++: void blur(InputArray src, OutputArray dst, Size ksize, Point anchor=Point(-1,-1), int borderType=BORDER_DEFAULT )  Python: cv2.blur(src, ksize[, dst[, anchor[, borderType]]]) → dst  Parameters: src – Source 8-bit or floating-point, 1-channel or 3-channel image. dst – Destination...
Continue Reading...

OpenCV Filters - Blur

Blurs an image using the normalized box filter. C++: void blur(InputArray src, OutputArray dst, Size ksize, Point anchor=Point(-1,-1), int borderType=BORDER_DEFAULT )  Python: cv2.blur(src, ksize[, dst[, anchor[, borderType]]]) → dst dgdfg Parameters: src – input image; it can have any number of channels, which are processed independently,...
Continue Reading...

OpenCV Filters - adaptiveBilateralFilter

Applies the adaptive bilateral filter to an image. C++: void adaptiveBilateralFilter(InputArray src, OutputArray dst, Size ksize, double sigmaSpace, double maxSigmaColor=20.0, Point anchor=Point(-1, -1), int borderType=BORDER_DEFAULT ) Python: cv2.adaptiveBilateralFilter(src, ksize, sigmaSpace[, dst[, maxSigmaColor[, anchor[, borderType]]]])...
Continue Reading...