Re: Out of memory problem

143 views
Skip to first unread message

jui wen Huang

unread,
Jun 1, 2013, 3:39:08 AM6/1/13
to hdr...@googlegroups.com


jui wen Huang於 2013年5月30日星期四UTC+8下午11時29分22秒寫道:
Hello,
I try to use HDR-VDP2,
but there is a problem to execute hdrvdp function.

img1=hdrimread('ChurchWindow1_Banterle.hdr');
img=hdrimread('ChurchWindow1.hdr');
res=hdrvdp(img1,img,'rgb-bt.709',30)

and with the error

??? Error using ==> fftn
Out of memory. Type HELP MEMORY for your options.

Error in ==> fft2 at 19
        f = fftn(x);

Error in ==> fast_conv_fft at 17
fX = fft2( padarray( X, pad_size, pad_value, 'post' ) );

Error in ==> hdrvdp_visual_pathway at 89
        L_O(:,:,k) =  clamp( fast_conv_fft( double(img(:,:,k)), mtf_filter, pad_value ), 1e-5,        1e10 );

Error in ==> hdrvdp at 232
[B_R L_adapt_reference band_freq bb_padvalue] = hdrvdp_visual_pathway( reference, 'reference',metric_par, -1 );

Rafal

unread,
Jun 1, 2013, 4:49:46 AM6/1/13
to hdr...@googlegroups.com

On Thursday, May 30, 2013 4:29:22 PM UTC+1, jui wen Huang wrote:
Hello,
I try to use HDR-VDP2,
but there is a problem to execute hdrvdp function.

img1=hdrimread('ChurchWindow1_Banterle.hdr');
img=hdrimread('ChurchWindow1.hdr');
res=hdrvdp(img1,img,'rgb-bt.709',30)

and with the error

??? Error using ==> ifftn
Out of memory. Type HELP MEMORY for your options

The problems seems to be with the matlab's FFT function. HDR-VDP needs to operate on matrices twice the size of the original image. For large resolution images, this could be quite substantial. Also, the memory management is not optimised in HDR-VDP-2.

My suggestion is to run with 64-bit version of the matlab and ensure you have sufficient memory (4Gb should be more than enough).

Rafal

jui wen Huang

unread,
Jun 2, 2013, 4:55:15 AM6/2/13
to hdr...@googlegroups.com
Thank you.
I have solve the problem with win7 64-bit version.

Rafal於 2013年6月1日星期六UTC+8下午4時49分46秒寫道:
Reply all
Reply to author
Forward
0 new messages