how to mask hue channel - threshold
Hi Guys ! I´m an beginner but i´ll not give up ;). Nevertheless I would be thankful for help.
I want to mask the hue channel by thresholding.
what I have:
Mat image = imread.....
cvtColor(image, image_hsv, CV_BGR2HSV);
// split
vector<Mat> hsv_channel;
split(image_hsv, hsv_channel);
hsv_channel[0] // H channel
hsv_channel[1] // S channel
hsv_channel[2] // V channel
Rect roi(point1x, point1y, (point2x-point1x), (point2y-point2y));
threshold(roi, image_mask, 0, 255, CV_THRESHOLD_BINARY_INV );
I dont know how to mask the Hue channel... would be very thankful for help Thanks ! :)
Probably you are looking for inRange()