import os
import sys
import cv2
import numpy as np
import IPython
#-------------------------------------------------------------------
def imshow(img):
_,ret = cv2.imencode('.jpg', img)
i = IPython.display.Image(data=ret)
IPython.display.display(i)
#-------------------------------------------------------------------
width = 400
height = 300
channel=3
filename = "../test/images/lotus.jpg"
img = cv2.imread(filename)
# img = cv2.resize(img,(width,height))
gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
gray = np.dstack((gray,gray,gray))
# print(img.shape)
# print(gray.shape)
images = np.hstack((gray,img))
imshow(images)