superresolution program problem
1 次查看(过去 30 天)
显示 更早的评论
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
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!