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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -