ERROR: ??? One or more output arguments not assigned during call to "upConv".

400 views
Skip to first unread message

chic

unread,
Mar 13, 2012, 11:40:32 PM3/13/12
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 )

Rafal

unread,
Mar 14, 2012, 4:32:24 AM3/14/12
to HDR VDP
Hi,

On Mar 14, 3:40 am, chic <chikaof...@gmail.com> wrote:
> 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)), ...

Judging from the error message, you may be using a non-patched version
of matlabPyrTools. You can find a patched toolbox at:

http://sourceforge.net/apps/mediawiki/hdrvdp/index.php?title=Main_Page#Download

The second thing is that the HDR-VDP is not meant to compare HDR and
tone-mapped images. For that purpose, you want to use:

http://www.mpi-inf.mpg.de/resources/hdr/vis_metric/

Rafal

Hazim Suffian

unread,
Feb 5, 2013, 3:58:30 AM2/5/13
to hdr...@googlegroups.com
You mentioned that it is not for the purpose of comparing HDR and tone mapped. How about comparing 2 HDR images?

Rafal Mantiuk

unread,
Feb 7, 2013, 9:16:14 PM2/7/13
to hdr...@googlegroups.com
On Tue, Feb 5, 2013 at 12:58 AM, Hazim Suffian <panjang...@gmail.com> wrote:
> You mentioned that it is not for the purpose of comparing HDR and tone
> mapped. How about comparing 2 HDR images?

This should work, provided that they are calibrated in cd/m^2.

Rafal
Reply all
Reply to author
Forward
0 new messages