RGB Value Confusion
Pratap Vardhan
pratapgr8 at gmail.com
Thu Oct 9 15:06:32 EDT 2014
You could convert data like
skimage.img_as_ubyte(floatdata)
Read more about data types
here http://scikit-image.org/docs/dev/user_guide/data_types.html
Thanks,
Pratap
On Friday, October 10, 2014 12:18:30 AM UTC+5:30, Michael Alonge wrote:
>
> Hello,
>
> Maybe this is quite trivial, but I am a little confused about the RGB
> values represented in my numpy arrays.
>
> I get floats between zero and one, such as (0.45803295125156029,
> 0.10643323197708233, 0.18076931323028619) (this should be a slightly red
> color).
>
> Is there a way for me to convert this to normal RGB values? My
> understanding is that they should be whole integers.
>
> Thank you,
>
> Michael Alonge
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20141009/f1d662db/attachment.html>
More information about the scikit-image
mailing list