superresolution program problem

1 次查看(过去 30 天)
li
li 2011-2-23
回答: arushi 2024-8-8
http://lcav.epfl.ch/software/superresolution please refer to this page and download the program provided, I tried so many time and I could not add any of the images. I am thinking the problem of this program. Does anyone know how to fix it? thanks. this is the error descovered thanks
??? Attempt to reference field of non-structure array.
Error in ==> superresolution>addImageFile at 145 set(handles.listImages, 'FontAngle', 'normal');
Error in ==> superresolution>addButton_Callback at 991 addImageFile(handles);
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> superresolution at 47 gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback

回答(1 个)

arushi
arushi 2024-8-8
Hi Li,
The error you're encountering "Attempt to reference field of non-structure array", suggests that the handles variable being passed to the addImageFile function is not being recognized as a structure. This is likely causing the program to fail when it tries to access handles.listImages.
Here are some steps you can take to diagnose and potentially fix the problem:
1. Check the handles Structure - Ensure that handles is a valid structure and that handles.listImages exists before it is accessed. You can add debugging statements to check the state of handles.
2. Verify Initialization - Make sure that handles is properly initialized and that listImages is created before addImageFile is called.
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by