Re: The right way to access red channel in Lena
Thanks! On Thu, Mar 26, 2015 at 8:38 PM, Stéfan van der Walt <stefanv@berkeley.edu> wrote:
Hi Adam
On Thu, Mar 26, 2015 at 4:31 PM, Adam Hughes <hughesadam87@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@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
participants (1)
-
Adam Hughes