I want to show 2, 3 or more images in the same window.
My problem is how to put the second, third image just on the right side (above, left or upper) the main image.
The answer depends on which interface you are using (C or C++). General workflow is
cv::Mat for C++, IplImage* for C) big enough to accomodate your composed imageMat::Mat(const Mat& m, const Range& rowRange, const Range& colRange) constructor to get a cv::Mat pointing to a subimage of your original window, then use the copyTo method to copy your small image into the big one