import numpy
import cv2
# n = numpy.arange(17)
# n.reshape(3,9)
# n.reshape(3,3,3)
# n = numpy.asarray([[123, 12, 123, 12, 33], [], []])

# im_g = cv2.imread("smallgray.png",1) #0 - B/W; 1 - RGB
# cv2.imwrite("smallgray_copy.png", im_g)

# for i in im_g.flat:
#     print(i)
# ims = numpy.hstack(im_g, im_g, im_g)
# ims = numpy.vstack(im_g, im_g, im_g)
# lst = numpy.hsplit(ims, 5)