- Erosion侵蚀
- 实现原理
- replaces the current pixel with the minimum prixel value found in the defined pixel set.
- 使用方法
- 实现原理
Mat image= imread("luhan.jpg");
Mat eroded;
erode(image, eroded, Mat());
- Dilation膨胀
- 实现原理
- replaces the current pixel with the maximum pixel value found in the defined pixel set.
- 使用方法
- 实现原理
Mat image= imread("luhan.jpg");
Mat dilated;
dilate(image, dilated, Mat());
P2为erode处理过的图片,眼睛变黑了;P3为dilate处理过的图片,眉毛没了。