GithubHelp home page GithubHelp logo

Invalid MEX-file about mexopencv HOT 7 CLOSED

kyamagu avatar kyamagu commented on June 30, 2024
Invalid MEX-file

from mexopencv.

Comments (7)

kyamagu avatar kyamagu commented on June 30, 2024

Do you set up your SYSTEM PATH?

from mexopencv.

siddadd avatar siddadd commented on June 30, 2024

If you mean for MATLAB, then yes, it is setup as under

C:\Program Files\MATLAB\R2012a\bin;

I also added the mexopencv path to MATLAB

>> addpath('C:\opencv\matlab\trunk')

>> path

MATLABPATH

C:\opencv\matlab\trunk

from mexopencv.

kyamagu avatar kyamagu commented on June 30, 2024

No, I mean your SYSTEM PATH.

http://opencv.willowgarage.com/wiki/WindowsSystemPath

On Jan 21, 2013, at 5:44 PM, siddadd [email protected] wrote:

If you mean for MATLAB, then yes, it is setup as under

C:\Program Files\MATLAB\R2012a\bin;

I also added the mexopencv path to MATLAB

addpath('C:\opencv\matlab\trunk')

path

MATLABPATH

C:\opencv\matlab\trunk


Reply to this email directly or view it on GitHub.

from mexopencv.

siddadd avatar siddadd commented on June 30, 2024

I added C:\opencv\build\x64\vc10\bin and C:\opencv\build\x64\vc10\lib to my SYSTEM PATH and carried out the whole process again. I was able to build successfully but when I try executing a function, MATLAB crashes.

from mexopencv.

siddadd avatar siddadd commented on June 30, 2024

I even tried copying all the OpenCV dlls into the +cv folder but to no avail

from mexopencv.

kyamagu avatar kyamagu commented on June 30, 2024

Are you using VC2010 compiler in Win 64-bit? You must use Windows SDK compiler in 64-bit arch.

On Jan 21, 2013, at 6:26 PM, siddadd [email protected] wrote:

I even tried copying all the OpenCV dlls into the +cv folder but to no avail


Reply to this email directly or view it on GitHub.

from mexopencv.

siddadd avatar siddadd commented on June 30, 2024

Ok. Thanks. I installed Windows SDK and then carried out the process but I got an error

>> result = cv.filter2D(img, ker)
Error using cv.filter2D
Unexpected Standard exception from MEX file.
What()
is:C:\slave\WinInstallerMegaPack\src\opencv\modules\core\src\convert.cpp:274:
error: (-215) mv[i].size == mv[0].size && mv[i].depth() == depth

Based on htaichiwang comment I then rebuilt with -D_SECURE_SCL=0 and now the function runs fine. Even UnitTest ran fine.

Closing this issue. Thanks for the support. Looking forward to using this package.

from mexopencv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.