Comments (7)
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.
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.
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.
Matrix inputs and uint8 vectors. It crashed calling the MATLAB wrapper mi
.
from mitoolbox.
So you called mi(X,Y) where X & Y were both matrices of uint8 values?
from mitoolbox.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mitoolbox.