matlab.error graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MTF_Radial('pushbutton4_Callback',hObject,eventdata,guidata(hObject)) Error while evaluating UIControl Callback
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Nazil Ainurrofik
el 27 de Mayo de 2020
Respondida: Geoff Hayes
el 29 de Mayo de 2020
i try to do segmentation on image, but there are error like this,
Error: File: f_SegmentasiHU.m Line: 1 Column: 34
Unexpected MATLAB operator.
Error in MTF_Radial>pushbutton4_Callback (line 181)
[DB]=f_SegmentasiHU(D2); %melakukan segmentasi
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in MTF_Radial (line 16)
gui_mainfcn(gui_State, varargin{:});
and the programs for error File: f_SegmentasiHU.m Line 1 Column:34
function [IC]=f_SegmentasiHU(img1.IMA);
and the program for error in MTF_Radial>pushbutton4_Callback(line 181)
function pushbutton4_Callback(hObject, eventdata, handles)
mydatacontainer=getappdata(0,'datacontainer');
D3=getappdata(mydatacontainer,'gambar');
FV=getappdata(mydatacontainer,'FV');
Miring=getappdata(mydatacontainer,'Kemiringan');
Potong=getappdata(mydatacontainer,'Perpotongan');
Spasi=getappdata(mydatacontainer,'Space');
Number=str2double(get(handles.edit1,'string'));
Citra=D3(:,:,Number);
[D2]=f_HU(Citra, Miring, Potong);
[DB]=f_SegmentasiHU(D2); %melakukan segmentasi
axes(handles.axes1);
imshow(D2,'DisplayRange',[]);
DBP = bwmorph(DB,'remove'); %mengambilbagian pinggir citra
[n m]=size(DBP);
p=0;
0 comentarios
Respuesta aceptada
Geoff Hayes
el 29 de Mayo de 2020
Nazil - the problem is with your function signature
function [IC]=f_SegmentasiHU(img1.IMA);
Note how you are defining the (only) input parameter as img1.IMA using the period '.' which is invalid given the context. Try just using
function [IC]=f_SegmentasiHU(img1)
instead (note that I've removed the semi-colon from the end of the line too - there shouldn't be any need for it).
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!