I am trying to display image frame from the video and its histograms in one window using canvas. Here is the piece of my code. It displays only the image but not the histogram, I am saving the calculated histogram in cv::Mat
histogram. Separately the histogram in another window is displayed without problem. makeCanvas is from here
vector<Mat> vecMat1;
vecMat1.push_back(frame);
vecMat1.push_back(histogram);
cv::namedWindow("canvas");
cv::imshow("canvas", makeCanvas(vecMat1, 600, 2));`
Is it possible to do? Any references, any information is appreciated. Thank you.