I have two single channel imagesMat I1; and Mat I2;. I don't have information about their datatype (i.e. uchar or float).
Task: I want to merge them into an image Mat mergedImage which should have 2 channels so that I1 and I2 can be merged into it.
Problem: Before merging the images into Mat mergedImage , i must create that image using mergedImage.create( I1.size() , ......  );
What should i fill at the place of ...... ? I just know that it should be of 2-channels so, how do i extract the datatype of I1
PS: Please don't say to use I1.type() because I1 is of single channel only.