RGB Value Confusion
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
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
participants (2)
-
Michael Alonge
-
Pratap Vardhan