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: |
|
---|
The call
blur(src, dst, ksize, anchor, borderType)
is equivalent to boxFilter(src, dst, src.type(), anchor, true, borderType)
Reference: OpenCV Documentation - blur
Example
This is a sample code (C++) with images for opencv blur filter.
string imgFileName = "lena.jpg";
cv::Mat src = cv::imread(imgFileName);
if (!src.data){
cout << "Unable to open file" << endl;
getchar();
return 1;
}
cv::Mat dst;
cv::blur(src, dst, cv::Size(19, 19));
cv::namedWindow("Source");
cv::namedWindow("Filtered");
cv::imshow("Source", src);
cv::imshow("Filtered", dst);
cv::waitKey(0);
cv::imwrite("Blur.jpg", dst);
return 0;
Filtered Image | Source Image |
Download complete Visual Studio project.
Auto Blur background Photo Editor & Blur image Background Effect on image app gives a stylish DSLR blurry effect on images with easy to finger pressing editing work. Also, use Blur background Photo Editor & blurry image app like an expensive DSLR camera blurry photo tool.
ReplyDeletepusulabet
ReplyDeletesex hattı
https://izmirkizlari.com
rulet siteleri
rexbet
LUKUM