"Undefined function or variable "o1Bound" " whereas that variable have been used in another function and it works, how can I fix this error ?
显示 更早的评论
I got the code from here http://www.comp.hkbu.edu.hk/~vincent/resTool.htm (fingerprint verification) and I implement this in my project
% --- Executes on button press in btn_direction.
function btn_direction_Callback(hObject, eventdata, handles)
image1 = handles.image1;
guidata(hObject,handles);
axes(handles.axes2);
[o1Bound,o1Area]=direction(image1,16);
guidata(hObject,handles);
% --- Executes on button press in btn_ROI.
function btn_ROI_Callback(hObject, eventdata, handles)
image1 = handles.image1;
guidata(hObject,handles);
axes(handles.axes2);
[o2,o1Bound,o1Area]=drawROI(image1,o1Bound,o1Area);
guidata(hObject,handles);
the error is on this line > [o2,o1Bound,o1Area]=drawROI(image1,o1Bound,o1Area);
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!