摘要:
#include#includevoid colorReduce(cv::Mat &imag, int div = 64){ int n1 = imag.rows; int nc = imag.cols*imag.channels();//每一行的像素数目(多通道的像素需要乘3) ... 阅读全文
摘要:
#include #include #include #includevoid salt(cv::Mat &imag, int n){ for (int k = 0; k (j, i) = 255; } else if (imag.channels() == 3)... 阅读全文