Ask Your Question

emmanuel's profile - activity

2014-01-31 10:26:03 -0600 asked a question matlab bindings issue (call to cv doesn't work)

Hello, I have just installed the latest version of opencv for the purpopse of installing matlab bindings. I have already built OpenCV 2.4.8 with Cmake 2.8.12.2 by using Visual Studio 2010 Express as to configure and generate the build. I type this into MATLAB (I am using MATLAB version 7.12.0 (R2011a)):

I = imread('cameraman.tif'); If = cv.dft(I, cv.DFT_COMPLEX_OUTPUT); ??? Undefined variable "cv" or function "cv.DFT_COMPLEX_OUTPUT".

I am not sure what is going on because I have already added ${CMAKE_BUILD_DIR}/modules/matlab to the MATLAB path. Have any of you guys run into a similar situation?

2014-01-30 19:45:53 -0600 commented question OpenCV matlab bindings not working compiler issues

In cmake, I changed my generator from MinGW ( which I am sure that I download the 64 bits compilers for C and C++) and changed to Visual Studio 12 64 bit and everything worked ( I did have to change from Python3.3 to Python 2.7 ). My problem now is that matlab doesn't seem to recognize opencv commands even when I do addpath('C:\opencvbuilds\modules\matlab\'); . Help please? :(

2014-01-30 18:19:42 -0600 received badge  Student (source)
2014-01-30 18:00:59 -0600 asked a question OpenCV matlab bindings not working compiler issues

Hello,

I am trying to build opencv with matlab bindings. After running the cmake ( version 2.8.12.2), I am able to set the configuration somewhat correctly (it has trouble finding and its associated libraries and include for whatever reason) and I always get this message:

CMake Warning at modules/matlab/CMakeLists.txt:44 (message): Your compiler is 32-bit but your version of Matlab is 64-bit. To build Matlab bindings, please switch to a 64-bit compiler. Call Stack (most recent call first): modules/matlab/CMakeLists.txt:66 (warn_mixed_precision)

I have looked in the cmakelists.txt file in the .../modules/matlab directory to see what this issue is and it seems like my mex compiler is 32 bit. I am using Microsoft Visual Studio 10.0 and I looked into the mexopts.bat file and I see that the compiler has to be 64 bit. My gcc and g++ compilers are also 64 bit as well (I assuming mingwgcc and mingwg++). So I am not sure what the problem may be?