Effacer les filtres
Effacer les filtres

Converting image class from single to double loose some data?

1 vue (au cours des 30 derniers jours)
Nithya
Nithya le 18 Nov 2013
Modifié(e) : Nithya le 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.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by