.Net assembly and "Undefined function 'imresizemex' for input arguments of type 'double'".

1 次查看(过去 30 天)
Hello,
I'm trying to create a .net dll in order to use my matlab code into an application in .Net.
In my matlab code I use the function imresize(X,0.5) without having any problem. But in C# I'm having this exception: MWMCR::: "Undefined function 'imresizemex' for input arguments of type 'double'". Can anyone help me on solving this error?
Thanks in advance.

回答(2 个)

Walter Roberson
Walter Roberson 2013-3-30
In your MATLAB code, add the comment
%#function imresizemex
  2 个评论
Antoine Keftes
Antoine Keftes 2013-3-31
like this:
function var = name(input)
%#function imresizemex
I=imresize(im,0.5);
...CODE...
??
I tried that and I am having the same exception again about imresizemex... Have you tried that??
Antoine Keftes
Antoine Keftes 2013-3-31
Also I found that imrezisemex is located in a private directory of Matlab (toolbox\images\images\private\imresizemex.mexw64) and the file's extension is .mexw64. Does any of them cause this problem?? I din't find the file in the MCR's directory.

请先登录,再进行评论。


Xiaoyan Sheen
Xiaoyan Sheen 2016-3-16
imresizemex.mexw32/64 is a compiled code that can be called by Matlab. You may have trouble direct calling it in C#.

类别

Help CenterFile Exchange 中查找有关 Getting Started with Microsoft .NET 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by