c++ - OpenCV change RGB-intensity -
i work opencv 2.4.11+qt , try make video , change intensity of red/blue or green channel did not find functions or settings this. know how this?
if want change r/g/b value of 1 particular pixel, use like:
cv::mat img; // suppose 1 frame of video, in cv_bgr ... img.at<cv::vec3b>(idx_row, idx_col) = cv::vec3b(new_b, new_g, new_r); // change here
if want change values of given channel efficiently without changing other channels, check out how set given channel of cv::mat given value efficiently without changing other channels?
Comments
Post a Comment