簡體   English   中英

《函數指南》中調用其他函數的函數導致永無止境的執行

[英]Function that call other functions cause never-ending execution in Matlab Guide

我正在使用Peter Covesi函數 ,以適合使用RANSAC的單應性。 因此,它從帶有輸入和輸出的名為ransacfithomography的函數開始。 在此過程中,此函數將調用幾乎其他15個功能,直到返回輸出。

我的問題是,當我嘗試在gui中使用它時(按下按鈕時),它將導致永無休止的執行,甚至導致matlab崩潰。 否則,它將正常工作!

我已經在我的GUI中調用了其他函數,並且一切都很好,但是它們都不是從其他func內部調用的。.我不知道這是我只是在猜測的問題,任何幫助都將是很大的感謝!

function bInitialSet_Callback(hObject, eventdata, handles)\
imgLeft = handles.imgLeft;
imgRight = handles.imgRight;
imgLeftRegion = handles.imgLeftRegion;
similarity = handles.similarity;
Xleft = handles.Xleft;
Yleft = handles.Yleft;
Xright = handles.Xright;
Yright = handles.Xright;
truecoor = handles.truecoor;
[~,~,Lunion,similarity] = initialSet( similarity,[Xleft';Yleft'],[Xright';Yright'] );
t = .001; 
T=Lunion;
[H,inliers] = mathcesWithRansac( T, truecoor, Xleft, Yleft, Xright, Yright, imgLeft, imgRight, imgLeftRegion, t );
% Update data
guidata(hObject, handles);

函數mathchesWithRansac是調用ransacfithomography的函數。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM