I have image in either RGB format or grayscale format (I converted it through Gimp, let's say), now everytime I load the image in grayscale, or just transform it to grayscale format, the shape always says [height, width] without the third dimension (number of color channels).
I know that usually b/w images are stored in such format, but I specifically need the [height, width, 1]
image shape, the one you would get with, let's say:
numpy.zeros(shape=[400, 400, 1])