c++ opencv color map rgb conversion hsv channel separation

c++ opencv color map rgb conversion hsv channel separation

// An highlighted block
Mat 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];

img
img
img_hsv
insert image description here
h1
insert image description here
h2
insert image description here
h3
insert image description here

Guess you like

Origin blog.csdn.net/qq_41648925/article/details/123815097