摘要: 在图像处理方面,无论是加是减,乘除,都会超出一个像素灰度值的范围(0~255),saturate_cast函数的作用即是:当运算完之后,结果为负,则转为0,结果超出255,则为255。 https://blog.csdn.net/piaoxuezhong/article/details/605709 阅读全文
posted @ 2018-08-16 20:15 BreakofDawn 阅读(818) 评论(0) 推荐(0) 编辑
摘要: 1 ////////https://blog.csdn.net/uestc_c2_403/article/details/72814206 2 #include "opencv2/highgui/highgui.hpp" 3 #include "opencv2/imgproc/imgproc.hpp 阅读全文
posted @ 2018-08-16 20:13 BreakofDawn 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 应用1:图像补运算:MatIterator_迭代器反色处理: 1 #include <opencv2/video/background_segm.hpp> 2 #include <iostream> 3 #include<core/core.hpp> 4 #include<highgui/highg 阅读全文
posted @ 2018-08-16 19:59 BreakofDawn 阅读(834) 评论(0) 推荐(0) 编辑
摘要: Gamma校正是对输入图像灰度值进行的非线性操作,使输出图像灰度值与输入图像灰度值呈指数关系: A是一个常数,通常取1,这个指数即为Gamma。 Gamma校正的原理很简单,就一个很简单的表达式,如下图所示: 其中V_in的取值范围是0~1,最重要的参数就是公式中的γ参数! γ的值决定了输入图像和输 阅读全文
posted @ 2018-08-16 19:36 BreakofDawn 阅读(2112) 评论(0) 推荐(0) 编辑