C++
天璇丶
技多不压身
展开
-
opencv 绿色通道提取
对于RGB图像的绿色通道提取#include<opencv2/opencv.hpp>#include<iostream>#include<cassert>#include<vector>using namespace cv;using namespace std;int main(){ Mat srcImage = imread("vessels.jpg"); Mat原创 2016-03-15 14:47:56 · 3659 阅读 · 1 评论 -
opencv 改变图像对比度
static void on_Contrast(int, void*){ //创建窗口 namedWindow("【原始窗口】", 1); for (int y = 0; y < g_srcImage.rows; y++) { for (int x = 0; x < g_srcImage.cols; x++) {原创 2016-03-15 15:53:32 · 436 阅读 · 0 评论