The right way to access red channel in Lena

Josh Warner silvertrumpet999 at gmail.com
Thu Mar 26 19:29:34 EDT 2015


Hi Adam,

You can slice out just the red channel with `lena[..., 0]`, which is equivalent to `lena[:, :, 0]`. The result will be a rank 2 array representing the red channel. This ability is made possible by NumPy.


More information about the scikit-image mailing list