chic
unread,Mar 13, 2012, 11:40:32 PM3/13/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to HDR VDP
Hello,
I keep getting this error:
-------------------------------------------------------------------------------------------------------------------------------------------------
??? One or more output arguments not assigned during call to "upConv".
Error in ==> reconSpyrLevs at 41
res = upConv(reshape(pyr(ind:ind+prod(res_sz)-1), res_sz(1),
res_sz(2)), ...
Error in ==> reconSpyrLevs at 21
nres =
reconSpyrLevs( pyr(1+sum(prod(pind(1:lo_ind-1,:)')):size(pyr,1)), ...
Error in ==> reconSpyrLevs at 21
nres =
reconSpyrLevs( pyr(1+sum(prod(pind(1:lo_ind-1,:)')):size(pyr,1)), ...
Error in ==> reconSpyrLevs at 21
nres =
reconSpyrLevs( pyr(1+sum(prod(pind(1:lo_ind-1,:)')):size(pyr,1)), ...
Error in ==> reconSpyrLevs at 21
nres =
reconSpyrLevs( pyr(1+sum(prod(pind(1:lo_ind-1,:)')):size(pyr,1)), ...
Error in ==> reconSpyrLevs at 21
nres =
reconSpyrLevs( pyr(1+sum(prod(pind(1:lo_ind-1,:)')):size(pyr,1)), ...
Error in ==> reconSpyr at 85
res1 = reconSpyrLevs(pyr(1+prod(pind(1,:)):size(pyr,1)), ...
Error in ==> hdrvdp at 354
S_map = abs(reconSpyr( D_bands.pyr, D_bands.pind,
metric_par.steerpyr_filter ));
Error in ==> sample at 25
res1 = hdrvdp( T, R, 'rgb-bt.709', ppd )
-------------------------------------------------------------------------------------------------------------------------------------------------
This is the code I used to call the HDR-VDP....
% Load reference and test images
R = double(hdrread( 'desk.hdr' )); % images must be
[M,N,X]= size(T)
R=R./max(R(:));
T = double(imread( 'desk004.jpg' ))/2^8; % Tone-mapped image
tt=size(T)
rr=size(R)
% Compute pixels per degree for the viewing conditions
ppd = hdrvdp_pix_per_deg( 21, [size(T,2) size(T,1)], 1 );
% Run hdrvdp
res1 = hdrvdp( T, R, 'rgb-bt.709', ppd )