The right way to access red channel in Lena

Adam Hughes hughesadam87 at gmail.com
Thu Mar 26 20:40:35 EDT 2015


Thanks!

On Thu, Mar 26, 2015 at 8:38 PM, Stéfan van der Walt <stefanv at berkeley.edu>
wrote:

> Hi Adam
>
> On Thu, Mar 26, 2015 at 4:31 PM, Adam Hughes <hughesadam87 at gmail.com>
> wrote:
>
>> ax1.imshow(lena*(1,0,0))
>> ax2.imshow(lena*(255,0,0))
>>
>
> The multiplication turns your image's dtype into uint64, which causes the
> scaling problems.
>
> I prefer with float images, always ensuring that they are in [0, 1] and
> then specifying vmin=0 and vmax=1 to matplotlib.
>
> Regards
> Stéfan
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "scikit-image" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/scikit-image/JzmfEbBJKYU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> scikit-image+unsubscribe at googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20150326/493c102d/attachment.html>


More information about the scikit-image mailing list