About HDRVDP_VISUALIZE Parameter Question from Matlab

291 views
Skip to first unread message

Wei-Sung Chen

unread,
Apr 23, 2012, 8:17:15 AM4/23/12
to hdr...@googlegroups.com
Hi:
 
I was using hdrvdp-2.1.1 and matlabPyrTools_1.4_fixed,
 
I reference Contents.m and try this code...
-------------------------------------------------------------------------------------------------------
T = double(imread( 'C:\HDR-VDP-2\lena_test.bmp' ))/2^8;
R = double(imread( 'C:\HDR-VDP-2\lena.bmp' ))/2^8;
ppd = hdrvdp_pix_per_deg( 21, [size(T,2) size(T,1)], 1 );
res1 = hdrvdp( T, R, 'sRGB-display', ppd )
-------------------------------------------------------------------------------------------------------
and return P_map, P_det, ..., Q_MOS.
It's so great! success.
 
But I do not understand how to apply the first two parameters for hdrvdp_visualize function.
map = hdrvdp_visualize( P, img, target, colormap )
the target select 'screen', color map select 'trichromatic' .
 
where error map:P, context image:img
how to setup and apply?
 
Sincere thank you for your help.
 
 
WSC.
 
 
 
 
 
 
 
 
 

Rafal

unread,
Apr 24, 2012, 5:44:23 AM4/24/12
to hdr...@googlegroups.com
Here is an example how hdrvdp_visualize could be used:

reference = logspace( log10(0.1), log10(1000), 512 )' * ones( 1, 512 );
test = reference .* (1 + (rand( 512, 512 )-0.5)*0.02);
res = hdrvdp( test, reference, 'luminance', 30 );

imshow( hdrvdp_visualize( res.P_map, test ) )

res.P_map is the probability of detection map.

Rafal

Wei-Sung Chen

unread,
Apr 25, 2012, 12:39:57 PM4/25/12
to hdr...@googlegroups.com
 
Dear Rafal:
 
Thank you for your helpThis is my biggest tips, and successfully resolved the problem!
 
WSC.
 

Rafal於 2012年4月24日星期二UTC+8下午5時44分23秒寫道:
Rafal於 2012年4月24日星期二UTC+8下午5時44分23秒寫道:
Rafal於 2012年4月24日星期二UTC+8下午5時44分23秒寫道:
Rafal於 2012年4月24日星期二UTC+8下午5時44分23秒寫道:
Reply all
Reply to author
Forward
0 new messages