Re: How to use and install HDR VDP?

560 views
Skip to first unread message

Rafal

unread,
Jan 21, 2013, 11:53:00 AM1/21/13
to hdr...@googlegroups.com
Hi,

There was a mistake in the documentation in hdrvdp-2.1.1. The new release (2.1.3) has an updated documentation with fixed example code:

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


Rafal

On Sunday, January 20, 2013 5:18:55 PM UTC, winwi...@gmail.com wrote:
Hi.
 
I want use HDR VDP.
 
So, I have a few questions.
 
I tried to install for HDR VDP in window 7 os.
 
First, I downloaded 'hdrvdp-2.1' and 'matlabPyrTools'.
 
Second, I added to path 'hdrvdp-2.1' and 'matlabPyrTools'.
 
1. Is this process correct? or Need I more process for using HDR VDP?
 
I made a new source and tried to example in 'hdrvdp.m'.
 
 
reference = logspace( log10(0.1), log10(1000), 512 )' * ones( 1, 512 );
test = reference .* (1 + (rand( 512, 512 )-0.5)*0.02);
[P_det P_map pe_corr] = hdrvdp( test, reference, { 'pixels_per_degree', 30, 'viewing_distance', 1 } );
 
 
But I got following error.
 
 
??? Error using ==> hdrvdp
Too many output arguments.
Error in ==> HDR_VDP at 17
[P_det P_map pe_corr] = hdrvdp( test, reference, { 'pixels_per_degree', 30, 'viewing_distance', 1 } );
 
 
2. How can I use this example?
3. If I use hdrvdp function what kind of file test and reference? .hdr? .jpg? .bmp?

 
abstract
 
1. Is this process correct? or Need I more process for using HDR VDP?
2. How can I use this example?
3. If I use hdrvdp function what kind of file test and reference? .hdr? .jpg? .bmp?
 
Please, answr my questions.
 
Thanks.

winwi...@gmail.com

unread,
Jan 21, 2013, 1:05:46 PM1/21/13
to hdr...@googlegroups.com
Hi.
 
Thanks for your answer.
 
I can running HDR VDP example.
 
But I have more questions.
 
1. If I use hdrvdp function what kind of file test and reference? .hdr? .jpg? .bmp?
 
I tried to using hdrvdp function for .'jpg'.
 
 
testFileName = 'A.jpg';
refFileName = 'C.jpg';
test_img=double(imread(testFileName))/255;
ref_img=double(imread(refFileName))/255;
res = hdrvdp( test, reference, 'luminance', 30 );
clf;
imshow( hdrvdp_visualize( res.P_map, test ) );
 
But I got a error.
 
2. Can you tell me the example for image?
 
I want know more examples.
 
abstract
1. If I use hdrvdp function what kind of file test and reference? .hdr? .jpg? .bmp?
2. How can I use this function for my LDR image or multi exposure image.
 
Please, answer my questions.
 
Thanks.
 
Have a nice days!

Rafal

unread,
Jan 23, 2013, 4:09:11 AM1/23/13
to hdr...@googlegroups.com
You need to post the error message in order for us to help.

My guess is that you pass a colour image while your color space specification is 'luminance' - gray-scale image.

Rafal

winwi...@gmail.com

unread,
Jan 23, 2013, 5:05:43 AM1/23/13
to hdr...@googlegroups.com
Thanks for your answer.
 
I mistake that I need luminance in image.
 
Thanks I solve my problem.
 
And I have a question.
 
If I use this HDR VDP for my algorithm that is better than other algorithm.
 
How can I use HDR VDP?
 
Please answer my question.
 
Thanks.
Reply all
Reply to author
Forward
0 new messages