Failed to run the method "step" of the vision.Geo​metricTran​sformEstim​ator in the compiled exe file

2 ビュー (過去 30 日間)
Hello,
I'm puzzled with compiling the exe file of the following code:
function inliers = Test()
pts1 = rand(100,2);
pts2 = rand(100,2);
gte = vision.GeometricTransformEstimator('PixelDistanceThreshold', 1);
[~,inliers] = step(gte,pts1,pts2);
end
The code can run successfully in the MATLAB R2012a environment, but the compiled exe file failled at the step "[~,inliers] = step(gte,pts1,pts2);" on the machine with the MCR installed. The exe file can also work well on the machine which have the MATLAB environment.By the way,I use "mcc -e -R '-logfile,logfile.txt' -v Test.m -N -p vision" to get the exe file.My OS is win7 (64bits),compiler is "Microsoft Visual C++ 2008 SP1".
Can anyone give me some hints,many thanks!

採用された回答

rocwoods
rocwoods 2012 年 8 月 10 日
Thanks for your warm-hearted comment.I try many times and fortunately solve the problem.It occurs because the method "step" use a mexwin32 file named "mvipesttform.mexwin32" to finish the work.However,the mexwin32 file must link to many dll files.When I use the MCR, I cannot find two dll files which are libmwdspshared_res.dll and dspcg.dll(Is it an occurance or bug?Hope for the answer of the MathWorks staff).If I add the dll files into depolyed environment,the exe file works well.
  2 件のコメント
Kaustubha Govind
Kaustubha Govind 2012 年 8 月 10 日
rocwoods: Thanks for posting your solution! Would you be so kind as to report this to MathWorks Tech Support please? This seems like it could be a bug, but Tech Support can confirm it and forward it to the appropriate development team.
rocwoods
rocwoods 2012 年 8 月 13 日
Thanks!I have reported the problem to "MathWorks Tech Support".

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by