Open soldatjiang opened 5 years ago
Thanks for your comment @soldatjiang . I have updated the files and tested the code with OpenCV 2.4 in Windows. I upload the mpolar.mexw64. Would you please try again and let me know whether it works with OpenCV 3?
I tested the code and put opencv_core2413.dll and opencv_imgproc2413.dll in the root directory and it works. You can include these two dlls in your repository so that others can run your code without any configuration. I will test it with OpenCV 3 soon.
I tested the code and put opencv_core2413.dll and opencv_imgproc2413.dll in the root directory and it works. You can include these two dlls in your repository so that others can run your code without any configuration. I will test it with OpenCV 3 soon.
Thanks, @soldatjiang . The dll files should be in the environment path when OpenCV is installed properly. I will keep it without dll since it is platform-specific.
I recompiled all mex files with OpenCV 3 and it works properly. Here is my compile script on my windows 7 x64 machine.
include_path = ['-I','D:\Program Files\opencv343\build\include'];
link_lib = fullfile('D:\Program Files\opencv343\build\x64\vc14\lib','opencv_world343.lib');
mex('-v',include_path,'mexResize.cpp','MxArray.cpp',link_lib)
mex('-v',include_path, 'mpolar.cpp', link_lib)
mex('-v',include_path, 'getColorSpace.cpp', link_lib)
mex('-v',include_path, 'getColorSpaceHist.cpp', link_lib)
Thanks for your comment @soldatjiang . I have updated the files and tested the code with OpenCV 2.4 in Windows. I upload the mpolar.mexw64. Would you please try again and let me know whether it works with OpenCV 3?
it cant't run normally in Opencv 3.3.0
Thanks for your comment @soldatjiang . I have updated the files and tested the code with OpenCV 2.4 in Windows. I upload the mpolar.mexw64. Would you please try again and let me know whether it works with OpenCV 3?
it cant't run normally in Opencv 3.3.0
Undefined function or variable 'mpolar'.
Error in logupdate (line 37) patchL = mpolar(double(patchL),p.mag);
Error in tracker (line 55) p = logupdate(1,im, pos, tmp_sc,tmp_rot,p);
Error in demo (line 22) [~,rects,~,~,~, time] = tracker(video_path, img_files, pos, target_sz, rot, show_visualization);
@Adhders Recompile the mex files and try again
@Adhders Have you solved this problem?
@Adhders Have you solved this problem?
No! I have MEX files successfully ,but it can't run normally in windows;
The error message shows that:
Invalid MEX-file 'C:\Users\junbo\Desktop\LDES-master\utility\mexfiles\mpolar.mexw64': The specified module could not be found..
Error in logupdate (line 37) patchL = mpolar(double(patchL),p.mag);
Error in tracker (line 55) p = logupdate(1,im, pos, tmp_sc,tmp_rot,p);
Error in demo (line 22) [~,rects,~,~,~, time] = tracker(video_path, img_files, pos, target_sz, rot, show_visualization);
@Adhders Recompile the mex files and try again
Have you solved this problem?
my configuration is Win10, Matlab2016b, VS2017 ,opencv2.4.11,
@Adhders Have you recompiled the mex file? What problem did you meet? You can try to compile the mex files using my compiling script. Note that you should modify the path according to your configuration.
@Adhders Have you recompiled the mex file? What problem did you meet? You can try to compile the mex files using my compiling script. Note that you should modify the path according to your configuration. I have mex files successfully
@Adhders Have you recompiled the mex file? What problem did you meet? You can try to compile the mex files using my compiling script. Note that you should modify the path according to your configuration.
how and where to modify the path, I am new to Matlab. what does compile.m file used for?
@Adhders Have you solved this problem?
No! I have MEX files successfully ,but it can't run normally in windows;
The error message shows that:
Invalid MEX-file 'C:\Users\junbo\Desktop\LDES-master\utility\mexfiles\mpolar.mexw64': The specified module could not be found..
Error in logupdate (line 37) patchL = mpolar(double(patchL),p.mag);
Error in tracker (line 55) p = logupdate(1,im, pos, tmp_sc,tmp_rot,p);
Error in demo (line 22) [,rects,,,, time] = tracker(video_path, img_files, pos, target_sz, rot, show_visualization);
Hi, if you can compile the mpolar.cpp, it should be okay for running the code. It seems like you did not install your OpenCV correctly. Have you included the OpenCV path in your environment?
@Adhders Have you solved this problem?
No! I have MEX files successfully ,but it can't run normally in windows; The error message shows that: Invalid MEX-file 'C:\Users\junbo\Desktop\LDES-master\utility\mexfiles\mpolar.mexw64': The specified module could not be found.. Error in logupdate (line 37) patchL = mpolar(double(patchL),p.mag); Error in tracker (line 55) p = logupdate(1,im, pos, tmp_sc,tmp_rot,p); Error in demo (line 22) [,rects,,,, time] = tracker(video_path, img_files, pos, target_sz, rot, show_visualization);
Hi, if you can compile the mpolar.cpp, it should be okay for running the code. It seems like you did not install your OpenCV correctly. Have you included the OpenCV path in your environment?
you are right!, I make it in windows with opencv 3.3.0, Thansk very much!
I recompiled all mex files with OpenCV 3 and it works properly. Here is my compile script on my windows 7 x64 machine.
include_path = ['-I','D:\Program Files\opencv343\build\include']; link_lib = fullfile('D:\Program Files\opencv343\build\x64\vc14\lib','opencv_world343.lib'); mex('-v',include_path,'mexResize.cpp','MxArray.cpp',link_lib) mex('-v',include_path, 'mpolar.cpp', link_lib) mex('-v',include_path, 'getColorSpace.cpp', link_lib) mex('-v',include_path, 'getColorSpaceHist.cpp', link_lib)
Thanks for your script @soldatjiang
I am getting this issue. Could you help me solve this, please?
mex mpolar.cpp Building with 'Microsoft Visual C++ 2017'. Error using mex mpolar.cpp G:\Documents\LDES-master - Copy\utility\mexfiles\mpolar.cpp(3): fatal error C1083: Cannot open include file: 'opencv2/opencv.hpp': No such file or directory
@MSathishkumar1990
include_path = ['-I','D:\Program Files\opencv343\build\include'];
link_lib = fullfile('D:\Program Files\opencv343\build\x64\vc14\lib','opencv_world343.lib');
mex('-v',include_path,'mexResize.cpp','MxArray.cpp',link_lib)
mex('-v',include_path, 'mpolar.cpp', link_lib)
mex('-v',include_path, 'getColorSpace.cpp', link_lib)
mex('-v',include_path, 'getColorSpaceHist.cpp', link_lib)
You can complile mpolar with this script, modify include_path and link_path according to your configuration.
I recompiled the utility/mpolar.cpp with mex using VS2015 and opencv3.4.3, and I came into the following error
Then I modified line 28 of mpolar.cpp like this:
I successfully compiled mpolar.cpp, but when I ran demo.m again, it threw the following exception:
There are no problem with other mex files.