Mastodon

opencv cv::split code sample

For future reference,
#include <opencv2/core/core.hpp> #include <vector> using namespace cv; using namespace xn; Mat m = Mat(rows, cols, CV_8UC3); vector<Mat> layers; split(m, layers); imshow("layer 0", layers[0]);