Here is my project, I have a GUI that loads images and I need to pass this image and several information to my mexFunction coded in C++, like xSize, ySize, window size for processing. I am having trouble to interprete the information that matlabs gives me and I am not sure how to actually do it too.
Share
Did you check the type of the data of your matrix?
I think that
imreadreturns a matrix of size m*n*3 of type uint8.try taking the example above and change the definition of
inputto:(since
doubletakes four times the memory isuint8you get memory exceptions when you treat the pointer as pointer todouble).