i have 1 matrix (3channel) -> cv::Mat channels[3];
& 3 matrix (1channel) -> cpu_filter0,cpu_filter90,cpu_filter120
previously I did something like this,
cv::Mat cpu_filter0,cpu_filter90,cpu_filter120
cv::Mat channels[] = {cpu_filter0,cpu_filter90,cpu_filter120}
but now I want to do like this
cv::Mat cpu_filter0,cpu_filter90,cpu_filter120
cv::Mat channels3[3];
channels[0] = &cpu_filter0, channels[1] = &cpu_filter90, channels[0] = &cpu_filter120;
or by,
cv::Mat channels3[] = {&cpu_filter0_0,&cpu_filter120_120,&cpu_filter240_240};
want to know what is the right way to do this??