First time here? Check out the FAQ!
answered 2018-08-14 10:51:49 -0600
just use cv::merge here:
std::vector<Mat> channels { channelB, channelG, channelR }; Mat bgr; cv::merge(channels, bgr);