Error and help regarding adding MATLAB pyrtools

140 views
Skip to first unread message

Pranav Sodhani

unread,
Jul 4, 2017, 5:43:17 PM7/4/17
to HDR VDP
Hi,

I unzipped HDRVDP-2.2 in a folder and included that in my MATLAB path. HDRVDP-2.2 folder contains the matlabpyrtools-fixed-1.4 folder. Do I need to add this folder too to Matlab path?

Also, is there anything else (compiling Mex files, etc) I need to do with matlabpyrtools before being able to use hdrvdp.m function? 

I am using MATLAB 2017a and get the following error when I try to execute the example provided in content.m. The program runs for like 5 minutes for one hdrvdp execution and returns this error: Any suggestions?

ERROR:

Missing symbol '_malloc' required by
'/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices->/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC->/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata->/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices->/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation->/Applications/MATLAB_R2017a.app/bin/maci64/libmwnativestrings.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwsettingscore.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwservices.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmex.dylib->/Users/pranav_sodhani/Documents/Codes/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'
Missing symbol '_memcpy' required by
'/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices->/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC->/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata->/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices->/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation->/Applications/MATLAB_R2017a.app/bin/maci64/libmwnativestrings.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwsettingscore.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwservices.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmex.dylib->/Users/pranav_sodhani/Documents/Codes/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'
Missing symbol '_memmove' required by
'/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices->/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC->/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata->/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices->/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation->/Applications/MATLAB_R2017a.app/bin/maci64/libmwnativestrings.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwsettingscore.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwservices.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmex.dylib->/Users/pranav_sodhani/Documents/Codes/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'
Missing symbol '_mig_dealloc_reply_port' required by
'/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices->/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC->/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata->/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices->/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation->/Applications/MATLAB_R2017a.app/bin/maci64/libmwnativestrings.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwsettingscore.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwservices.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmex.dylib->/Users/pranav_sodhani/Documents/Codes/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'
Missing symbol '_mig_deallocate' required by
'/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices->/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC->/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata->/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices->/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation->/Applications/MATLAB_R2017a.app/bin/maci64/libmwnativestrings.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwsettingscore.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwservices.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmex.dylib->/Users/pranav_sodhani/Documents/Codes/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'
Missing symbol '_mig_get_reply_port' required by
'/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices->/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC->/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata->/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices->/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation->/Applications/MATLAB_R2017a.app/bin/maci64/libmwnativestrings.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwsettingscore.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwservices.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmex.dylib->/Users/pranav_sodhani/Documents/Codes/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'
Missing symbol '_mig_put_reply_port' required by
'/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis->/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices->/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC->/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata->/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices->/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation->/Applications/MATLAB_R2017a.app/bin/maci64/libmwnativestrings.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwsettingscore.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmwservices.dylib->/Applications/MATLAB_R2017a.app/bin/maci64/libmex.dylib->/Users/pranav_sodhani/Documents/Codes/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'
Missing symbol '_mlock' required by

Pranav Sodhani

unread,
Jul 4, 2017, 6:21:33 PM7/4/17
to HDR VDP
I have compiled MEX files now and still get the error. Specifically, the error is here:

Missing symbol '_writev' required by
'/usr/lib/libstdc++.6.dylib->/Users/pranav_sodhani/Documents/Codes/hdrvdp-2.2.1/matlabPyrTools_1.4_fixed/pointOp.mexmaci64'.

Error in hdrvdp_visual_pathway (line 144)
    P_LMR(:,:,ii) = pointOp( log10( clamp(R_LMSR(:,:,k), 10^pn.Y{ph_type}(1), 10^pn.Y{ph_type}(end)) ), ...

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

Rafal

unread,
Dec 25, 2018, 7:10:57 AM12/25/18
to HDR VDP






This looks like an issue with the mex compiler. 

Did you use 

matlabPyrTools_1.4_fixed/MEX/compilePyrTools.m

in Matlab to compile the MEX files? Matlab usually has its own version of libc++, different from the system one, which causes all sorts of problems. MEX files should link to Matlab's libc++, not the system one.  Can you compile any other MEX file? 


Rafal

ANAND SWAMY A S

unread,
Dec 27, 2018, 10:51:55 AM12/27/18
to hdr...@googlegroups.com
Hi Rafal,
Thanks for the reply. I tried installing matlabPyrTools_1.4_fixed/MEX/compilePyrTools.m
but i am getting the following error
>> run('C:\Program Files\MATLAB\R2014a\LabForComputationalVision-matlabPyrTools-v1.4-6-g42e4602\LabForComputationalVision-matlabPyrTools-42e4602\MEX\compilePyrTools.m')
Error using mex
No supported compiler or SDK was found. For options, visit
http://www.mathworks.com/support/compilers/R2014a/win64.

Error in compilePyrTools (line 10)
mex upConv.c convolve.c wrap.c edges.c

Error in run (line 63)
evalin('caller', [script ';']);

Please help me.

Thank you.

--
You received this message because you are subscribed to the Google Groups "HDR VDP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hdrvdp+un...@googlegroups.com.
To post to this group, send email to hdr...@googlegroups.com.
Visit this group at https://groups.google.com/group/hdrvdp.
For more options, visit https://groups.google.com/d/optout.


--
regards,
ANAND SWAMY A.S 

Rafal

unread,
Jan 12, 2019, 5:05:02 PM1/12/19
to HDR VDP
You need to check Matlab documentation on installing compilers (MSVC or mingw).

Rafal
To unsubscribe from this group and stop receiving emails from it, send an email to hdrvdp+unsubscribe@googlegroups.com.

To post to this group, send email to hdr...@googlegroups.com.
Visit this group at https://groups.google.com/group/hdrvdp.
For more options, visit https://groups.google.com/d/optout.

ANAND SWAMY A S

unread,
Jan 13, 2019, 1:05:33 AM1/13/19
to hdr...@googlegroups.com
Thank u. 
I got it fixed.


Rafal
To unsubscribe from this group and stop receiving emails from it, send an email to hdrvdp+un...@googlegroups.com.

To post to this group, send email to hdr...@googlegroups.com.
Visit this group at https://groups.google.com/group/hdrvdp.
For more options, visit https://groups.google.com/d/optout.


--
regards,
ANAND SWAMY A.S 

--
You received this message because you are subscribed to the Google Groups "HDR VDP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hdrvdp+un...@googlegroups.com.

To post to this group, send email to hdr...@googlegroups.com.
Visit this group at https://groups.google.com/group/hdrvdp.
For more options, visit https://groups.google.com/d/optout.

ANAND SWAMY A S

unread,
Jan 17, 2019, 5:47:37 PM1/17/19
to hdr...@googlegroups.com
Hi,

When i run hdpvdp example code i am getting following error. Please do the needful.

Error in hdrvdp (line 172)
    [pathstr, name, ext, versn] = fileparts(mfilename( 'fullpath' ));

Error in ex_try (line 3)
res = hdrvdp( test, reference, 'luminance', 30, { 'surround_l', 13 } );

On Tue, Dec 25, 2018 at 5:40 PM Rafal <man...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "HDR VDP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hdrvdp+un...@googlegroups.com.
To post to this group, send email to hdr...@googlegroups.com.
Visit this group at https://groups.google.com/group/hdrvdp.
For more options, visit https://groups.google.com/d/optout.

Rafal

unread,
Jan 17, 2019, 7:11:02 PM1/17/19
to HDR VDP
> Error in hdrvdp (line 172)
>   [pathstr, name, ext, versn] = fileparts(mfilename( 'fullpath' ));

This is due to some changes in the more recent versions of Matlab. Remove "ext" and "versn" output parameters to get it fixed.

Rafal

 

ANAND SWAMY A S

unread,
Jan 17, 2019, 8:49:33 PM1/17/19
to hdr...@googlegroups.com
It didnt work. I am getting following error after removing ext and versn.

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

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


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

Error in ex_try (line 3)
res = hdrvdp( test, reference, 'luminance', 30, { 'surround_l', 13 } );
--
You received this message because you are subscribed to the Google Groups "HDR VDP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hdrvdp+un...@googlegroups.com.
To post to this group, send email to hdr...@googlegroups.com.
Visit this group at https://groups.google.com/group/hdrvdp.
For more options, visit https://groups.google.com/d/optout.

ANAND SWAMY A S

unread,
Jan 20, 2019, 1:42:10 AM1/20/19
to hdr...@googlegroups.com
Hi Rafal,
After removing "ext" and "versn" output parameters i got the output for the example code.

Now i am running following code

reference= hdrimread('smallOffice.hdr');
test= hdrimread('smallOffice.hdr');
res= hdrvdp(reference,test);
imshow(res);

i am getting following error. Please do the needful.
On Fri, Jan 18, 2019 at 5:41 AM Rafal <man...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "HDR VDP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hdrvdp+un...@googlegroups.com.
To post to this group, send email to hdr...@googlegroups.com.
Visit this group at https://groups.google.com/group/hdrvdp.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages