pil for numpy conversion leads to arrays like:
a = array([ [[r,g,b],[r,g,b].....[r,g,b],[r,g,b]] , [[r,g,b],[r,g,b.....]] , int8)
triplets of rgb values; inside the lines like this:
a[0] = [[r,g,b],[r,g,b].....[r,g,b],[r,g,b]] = first row
there is a quick way to convert such numpyts numpy arrays back and ford to (well especially back ..)
a = [[rrrr],[rrrrr],[rrrrr],.... [bbbbb],[bbbbbb],[bbbbbb]...,[ggggg],[ggg],[ggg]]
or
as
a=[[rrr],[rrrrr],[.... ...]] **or** aa = [rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr..]
b=[[bbb],[bbbbb],[.... ...]]**or** bb = [bbbbbbbbbbbbbbbbbbbbbbbbbb..]
c=[[ggg],[ggggg],[.... .]] **or** cc = [ggggggggggggggggggggggggg..]
My problem I have a format like aa bb cc and I know the image size is 640x480, how to get it in tablet form quickly, as shown below.
a = array([ [[r,g,b],[r,g,b].....[r,g,b],[r,g,b]] , [[r,g,b],[r,g,b.....]] , int8)