Converting image class from single to double loose some data?
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!