Ask Your Question
0

opencv -display multiple images in single window

asked 2013-05-22 03:58:40 -0600

SindhuMegha gravatar image

Hi,I m new to opencv c++,I am doing my academic project on content based image retrieval using opencv visual studio c++, I need to display input query image in one window and similar images to given input images(so multiple images) in another window.Pls any one help me....

Thanking You

edit retag flag offensive close merge delete

Comments

Create a big image capable of containing your input images, then copy each input images to appropriate location of your newly created image using image ROI. After copy display newly created image.

Haris gravatar imageHaris ( 2013-05-22 04:40:42 -0600 )edit

can you please post the code

bharath gravatar imagebharath ( 2014-06-22 10:47:07 -0600 )edit

Have checked the below solution?.

Haris gravatar imageHaris ( 2014-06-22 10:54:43 -0600 )edit

i checked the code i want to display all images in folder but for me i am getting only first and last images are displaying in a window.

bharath gravatar imagebharath ( 2014-06-22 13:11:29 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-05-22 04:47:16 -0600

Rogeeeer gravatar image

Try hconcat() and vconcat(), you can pass an array of matrix.

edit flag offensive delete link more

Comments

what are those functions ? not part of opencv, are they ? are you talking matlab ?

berak gravatar imageberak ( 2013-05-22 05:07:59 -0600 )edit

I didn't find any documentation, but i use it and it works fine :

Mat appSet;

vconcat(shapesBVec*weights, texBVec, appSet);

and they are int the cv namespace !

Rogeeeer gravatar imageRogeeeer ( 2013-05-22 05:39:56 -0600 )edit

ah, cool, thanks ;)

finally found it in core.hpp

berak gravatar imageberak ( 2013-05-22 05:50:57 -0600 )edit

Thank u all:).. Its working fine, using hconcat and vconcat functions.But its working only if the images are equal size..

SindhuMegha gravatar imageSindhuMegha ( 2013-05-23 14:09:18 -0600 )edit

Question Tools

Stats

Asked: 2013-05-22 03:58:40 -0600

Seen: 3,298 times

Last updated: May 22 '13