Git Product home page Git Product logo

Comments (7)

Craigacp avatar Craigacp commented on July 19, 2024

Yes, the C code expects all the inputs to be doubles, and it assumes that any input handed by Matlab will be a double (through an explicit cast). The Matlab wrappers probably should be modified to test the arrays and convert them to doubles first, though this will be slow if the user doesn't realise it's happening.

from mitoolbox.

edobez avatar edobez commented on July 19, 2024

Hello, I have faced the same problem as @iBM88 had until I started looking for help online.
I think this should be written in the README since it's quite an important thing.
Also there are some kinds of inputs which make MATLAB crash (at least in R2015a), for example when they are matrices instead of column vectors.

from mitoolbox.

Craigacp avatar Craigacp commented on July 19, 2024

I'll work on the README at the weekend, it could do with a touch up.

What kind of inputs make it crash? Is this directly calling the mex functions or using the MATLAB wrappers?

from mitoolbox.

edobez avatar edobez commented on July 19, 2024

Matrix inputs and uint8 vectors. It crashed calling the MATLAB wrapper mi.

from mitoolbox.

Craigacp avatar Craigacp commented on July 19, 2024

So you called mi(X,Y) where X & Y were both matrices of uint8 values?

from mitoolbox.

edobez avatar edobez commented on July 19, 2024

Yes, for example:
I = imread('cameraman.tif');
mi(I,I) --> crashes
mi(I(:),(:)) --> crashes

On Thu, Jan 7, 2016 at 10:57 AM, Adam Pocock [email protected]
wrote:

So you called mi(X,Y) where X & Y were both matrices of uint8 values?


Reply to this email directly or view it on GitHub
#1 (comment).

from mitoolbox.

Craigacp avatar Craigacp commented on July 19, 2024

Ok. I've added checks to the MATLAB wrappers so they reject inputs which aren't doubles. It should now throw an error message rather than crashing MATLAB.

from mitoolbox.

Related Issues (7)

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.