i am using mrilab. but i am encountering some error

조회 수: 11 (최근 30일)
Farhan
Farhan 2024년 10월 17일
답변: Manikanta Aditya 2024년 11월 12일 11:06
Unrecognized function or variable 'imrect'.
Error in DoDispFOV (line 156)
handles.AxialFOV=imrect(handles.Axial_axes, [handles.ISO(1)-xsize/(2*VObj.XDimRes)...
Error in SimuPanel>View_pushbutton_Callback (line 533)
DoDispFOV(handles,[]);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in SimuPanel (line 94)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)SimuPanel('View_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
Unrecognized field name "SagittalFOV".
Error in SimuPanel>Update_pushbutton_Callback (line 603)
delete(handles.SagittalFOV);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in SimuPanel (line 94)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)SimuPanel('Update_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
  댓글 수: 1
Cris LaPierre
Cris LaPierre 2024년 10월 17일
Do you have the image processing toolbox installed?
Note that imrect is not recommended. See here.

댓글을 달려면 로그인하십시오.

답변 (1개)

Manikanta Aditya
Manikanta Aditya 2024년 11월 12일 11:06
I understand that you are having issue with usage of 'imrect' object.
As mentioned by Cris above, imrect is not recommended. Use the new 'Rectangle' ROI object instead. You can also use the new ROI convenience function 'drawrectangle'. Try to update your code with told changes and retry and see if you encounter any issue.
Refer to the following documentation to know more about:
I hope this helps.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by