sending a opencv Mat to a shared library generated by matlab
Managed C++/CLI
1
Posts
1
Posters
1
Views
1
Watching
-
Hello everybody! at first I apologize for my weak English! I use a shared library generated by MATLAB 2012b in VC++ 2012. In my shared libray I have a function that takes two arguments and calculates normxcorr2 between them and return maximum calculated value:
function max = Normed_CC(template, image)
....Now I want to send two variables of type cv::Mat from my vc++ program to it. My problem is when I convert cv::Mat to mxArray and then send these new objects to "Normed_CC", normxcorr2 in Matlab side arise an exception with this theme: "template at least must have two item". sorry I don't remember exactly now because I'm not in work now and don't have access to my code...! please help me to resolve my issue. thanks in advance.