I have an matrix of images created in matlab which i will be using as an input to a convolutional neural network i am coding in theano. I've imported the matrix using numpy.loadtxt and on inspection the matrix appears identical to the one created in matlab. When using imshow() in matlab i get the images displayed corrected, however, when using matplotlib imshow() the images are transposed. Does anyone know the cause of this?
Code for matlab:
img = dlmread('kthImagesCheck.txt');
imshow(reshape(img(:,1), [104,104]))
Code for matplotlib:
img = numpy.loadtxt("kthImagesCheck", delimiter = ",")
imshow(reshape(img[:,0],[104,104])
I would post the images but im new to stackoverflow and i don't have enough reputation yet.
Cheers,