Attention! This forum will be made read-only by Dec-20. Please migrate to https://forum.opencv.org. Most of existing active users should've received invitation by e-mail.
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to display multiple images in one window?

I load 1 image and display them in 2 separate windows , one is normal and other one is grayscale filtered. But i need to display them in 1 window , side by side. I made example image :

PICTURE

My Code itself is atmoment simple , but is there any simple way how display them in 1 window ?

**import numpy as np import cv2

image = cv2.imread("kuju.jpg") #Load image

aa = cv2.imread("kuju.jpg",0) #Apply filter

bb = cv2.imread("kuju.jpg",1)

cv2.imshow("frame1",aa) #display in windows

cv2.imshow("frame2",bb)

cv2.waitKey(0) cv2.destroyAllWindows()**

How to display multiple images in one window?

I load 1 image and display them in 2 separate windows , one is normal and other one is grayscale filtered. But i need to display them in 1 window , side by side. I made example image :

PICTURE

My Code itself is atmoment simple , but is there any simple way how display them in 1 window ?

C O D E :

**import numpy as np import cv2

image = cv2.imread("kuju.jpg") #Load image

aa = cv2.imread("kuju.jpg",0) #Apply filter

filter bb = cv2.imread("kuju.jpg",1)

cv2.imshow("frame1",aa) #display in windows

windows cv2.imshow("frame2",bb)

cv2.waitKey(0) cv2.destroyAllWindows()**

click to hide/show revision 3
retagged

updated 2017-10-08 09:05:39 -0500

berak gravatar image

How to display multiple images in one window?

I load 1 image and display them in 2 separate windows , one is normal and other one is grayscale filtered. But i need to display them in 1 window , side by side. I made example image :

PICTURE

My Code itself is atmoment simple , but is there any simple way how display them in 1 window ?

C O D E :

**import numpy as np import cv2

image = cv2.imread("kuju.jpg") #Load image

aa = cv2.imread("kuju.jpg",0) #Apply filter bb = cv2.imread("kuju.jpg",1)

cv2.imshow("frame1",aa) #display in windows cv2.imshow("frame2",bb)

cv2.waitKey(0) cv2.destroyAllWindows()**