- 博客(17)
- 收藏
- 关注
原创 C++ OpenCV 基于HSV颜色分割区域、获取目标
C++ OpenCV 基于HSV颜色分割区域、获取目标读取图片// An highlighted blockMat img = imread("E:/Data_image/螺丝-线1/wire.bmp", 3);hsv 颜色范围 //黑 Scalar black_scalarL = Scalar(0, 0, 0); Scalar black_scalarH = Scalar(180, 255, 60); //黄 Scalar yellow_scalarL = Scalar(11
2022-05-19 16:22:51 2380
原创 c++ opencv 彩色图rgb 转换hsv 再通道分离
c++ opencv 彩色图rgb 转换hsv 再通道分离// An highlighted blockMat img_hsv; cvtColor(img, img_hsv, COLOR_BGR2HSV); vector<Mat> hsvSplit; split(img_hsv, hsvSplit); Mat h1 = hsvSplit[0]; Mat h2 = hsvSplit[1]; Mat h3 = hsvSplit[2];i
2022-03-29 10:42:17 3777
原创 c++ OpenCV c# unsigned char* 转 Mat图片
Mat 图片 与 unsigned char* 相互转换Mat图片 转 unsigned char*//单通道unsigned char* in_pixels = matImg.data;//3通道//还没试unsigned char* 转 Mat图片unsigned char* in_pixels;//单通道img = Mat(height, width, CV_8U, (void*)in_pixels);//3通道img = Mat(height, width, CV_8UC3
2022-03-25 20:00:00 5752
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人