Mat src= imread( "D:\\OCR\\Debug\\Temp\\Rects\\wholeMat_00191_0_0.jpg");
Mat dest;
Mat kern = (Mat_<char>(,) << , - ,,
-, , -,
, -, );
filter2D(src,dest,src.depth(),kern);
imshow("src",src);
imshow("dest",dest);
imwrite("D:\\dest.jpg",dest);
waitKey();

可以实现图像增强,处理过后图像大小增大30%

05-11 13:50