Converting image class from single to double loose some data?

1 Ansicht (letzte 30 Tage)
Nithya
Nithya am 18 Nov. 2013
Bearbeitet: Nithya am 19 Nov. 2013
I have hdr matrix created through makehdr command. This matrix is mxnx3 of class single.
I want to convert the sRGB color space to XYZ color space to get the luminance information.
hdr=makehdr(file); cform = makecform('srgb2xyz');
a= applycform(hdr,cform); % with hdr L=a(:,:,2); Error using applycform Expected input number 1, IN, to be one of these types: double, uint8, uint16 Instead its type was single.
a1= applycform(hdri,cform); % with hdri=double(hdr) L1=a1(:,:,2); gave me values of the ,matrix L1=1 which is not expected.
I need a help please.

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by