07 2014 档案
摘要:图像腐蚀和图像膨胀是图像中两种最基本形态学操作。void erode( const Mat& src, Mat& dst, const Mat& element,Point anchor=Point(-1,-1), int iterations=1,int borderType=BORDER_CON...
阅读全文
摘要:在opencv2中,可能使用blur对图像进行平滑处理,这种方法就是最简单的求平均数。平滑也称模糊, 是一项简单且使用频率很高的图像处理方法。平滑处理的用途有很多, 但是在很多地方我们仅仅关注它减少噪声的功用。平滑处理时需要用到一个滤波器。 最常用的滤波器是线性滤波器。void blur( cons...
阅读全文
摘要:在opencv2中,threshold函数可以进行阈值化操作。double threshold( const Mat& src, Mat& dst, double thresh,double maxVal, int thresholdType );参数:src:原图像。dst:结果图像。thresh...
阅读全文
摘要:在opencv2中,flip函数用来进行图片的翻转,包括水平翻转,垂直翻转,以及水平垂直翻转。void flip(const Mat& src, Mat& dst, int flipCode);参数:src:原图像。dst:翻转后的图像flipCode:翻转代码,int型。0代表垂直翻转,1代表水平...
阅读全文