Re: Re : Re: multispectral imaging: rgb image

Zachary Pincus zachary.pincus at yale.edu
Fri May 20 17:16:38 EDT 2011


> red=c3_r.reshape(c3,shape)
> TypeError: only length-1 arrays can be converted to Python scalars

I assume you want red = c3_r.reshape(c3.shape) ?

The method signature for the reshape method of numpy.ndarray is:
ndarray.reshape(shape, order='C')



More information about the scikit-image mailing list