In [14]:
output


Out[14]:
array([[[ 0.61960787,  0.56470591,  0.47058824],
        [ 0.627451  ,  0.56470591,  0.47058824],
        [ 0.62352943,  0.56470591,  0.47058824],
        ..., 
        [ 0.53333336,  0.48235294,  0.40392157],
        [ 0.65098041,  0.62352943,  0.57647061],
        [ 0.53333336,  0.53333336,  0.53333336]],

       [[ 0.61960787,  0.56078434,  0.47058824],
        [ 0.62352943,  0.56470591,  0.47058824],
        [ 0.62352943,  0.56470591,  0.47058824],
        ..., 
        [ 0.56862748,  0.51372552,  0.43529412],
        [ 0.68627453,  0.65490198,  0.61176473],
        [ 0.47450981,  0.47450981,  0.47450981]],

       [[ 0.61176473,  0.55686277,  0.46666667],
        [ 0.6156863 ,  0.56078434,  0.47058824],
        [ 0.62352943,  0.56470591,  0.47058824],
        ..., 
        [ 0.58431375,  0.52549022,  0.4509804 ],
        [ 0.69803923,  0.66666669,  0.61960787],
        [ 0.47450981,  0.47450981,  0.47450981]],

       ..., 
       [[ 0.        ,  0.        ,  0.        ],
        [ 0.        ,  0.        ,  0.        ],
        [ 0.        ,  0.        ,  0.        ],
        ..., 
        [ 0.13725491,  0.11372549,  0.1254902 ],
        [ 0.13333334,  0.10588235,  0.1254902 ],
        [ 0.1254902 ,  0.10196079,  0.1254902 ]],

       [[ 0.        ,  0.        ,  0.        ],
        [ 0.        ,  0.        ,  0.        ],
        [ 0.        ,  0.        ,  0.        ],
        ..., 
        [ 0.14117648,  0.11764706,  0.12941177],
        [ 0.13333334,  0.11372549,  0.12941177],
        [ 0.1254902 ,  0.10588235,  0.1254902 ]],

       [[ 0.        ,  0.        ,  0.        ],
        [ 0.        ,  0.        ,  0.        ],
        [ 0.        ,  0.        ,  0.        ],
        ..., 
        [ 0.14509805,  0.12156863,  0.13333334],
        [ 0.13725491,  0.11764706,  0.13333334],
        [ 0.12156863,  0.10588235,  0.1254902 ]]])

In [16]:
import numpy as np
import PIL

list_im = ['31May.png','13Jun.png']


imgs    = [ PIL.Image.open(i) for i in list_im ]
# pick the image which is the smallest, and resize the others to match it (can be arbitrary image shape here)
min_shape = sorted( [(np.sum(i.size), i.size ) for i in imgs])[0][1]
imgs_comb = np.hstack( (np.asarray( i.resize(min_shape) ) for i in imgs ) )

# save that beautiful picture
imgs_comb = PIL.Image.fromarray( imgs_comb)
imgs_comb.save( 'combined.png' )

In [13]:
plt.savefig("/Users/nipun/Desktop/a.png")


<matplotlib.figure.Figure at 0x131255550>

In [17]:
Image('combined.png')


Out[17]:

In [10]:



---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-10-950d792c9fca> in <module>()
----> 1 images[0]

TypeError: 'map' object is not subscriptable

In [ ]: