摘要: #include#includevoid colorReduce(cv::Mat &imag, int div = 64){ int n1 = imag.rows; int nc = imag.cols*imag.channels();//每一行的像素数目(多通道的像素需要乘3) ... 阅读全文
posted @ 2015-03-25 23:49 future_hero 阅读(612) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #includevoid salt(cv::Mat &imag, int n){ for (int k = 0; k (j, i) = 255; } else if (imag.channels() == 3)... 阅读全文
posted @ 2015-03-25 23:30 future_hero 阅读(2012) 评论(0) 推荐(0) 编辑