[scikit-image] Warning from view_as_blocks

2017-03-15 Thread Carlton Banks
I am currently using view_as_blocks to extract sub matrices from a bigger matrices, these submatrices has to non-overlapping. but i am getting this error: /usr/local/lib/python2.7/dist-packages/skimage/util/shape.py:94: RuntimeWarning: Cannot provide views on a non-contiguous input array with

[scikit-image] Convert data to image and then image to numpy.ndarray

2017-04-27 Thread Carlton Banks
Is it possible to convert a data set stored as a numpy.ndarray -> plot the data with a colormap , possibly cm.jet. -> and then store the image pixels to a numpy.ndarray. The data array of the image should have the same shape of the data array used to make the array. The image conversion is