how to solve the imresize syntax error when the syntax is right as i have checked it ?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Adnan Saify
el 31 de Dic. de 2015
Comentada: Adnan Saify
el 31 de Dic. de 2015
the error is given below
??? Error using ==> imresize>parsePreMethodArgs at 333 Invalid input syntax; input image missing from argument list.
Error in ==> imresize>parseInputs at 257 [params.A, params.map, params.scale, params.output_size] = ...
Error in ==> imresize at 141 params = parseInputs(varargin{:});
Error in ==> test1>pushbutton1_Callback at 102 k1=imresize(k,[300,300]);
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> test1 at 41 gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)test1('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
2 comentarios
Image Analyst
el 31 de Dic. de 2015
Put this on line 102, right before you call imresize()
whos k
What does it show in the command window. Is the badly-named k a 2-D gray scale array, or a 3-D true color RGB image?
Respuesta aceptada
Walter Roberson
el 31 de Dic. de 2015
You have passed in the name of an image instead of passing in the image itself.
In your code you have
k=handles.pic;
p=handles.pic1;
Make that
k = imread(handles.pic);
p = imread(handles.pic1);
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!