content based image retreival code error
1 view (last 30 days)
Show older comments
Hello, I want to do a program for content based image retreival, i have loaded the source code from the below link: http://in.mathworks.com/matlabcentral/fileexchange/42008-content-based-image-retrieval
I tried to make a database of 100 images and also of 1000 images. I created database, next i pressed the 'browse for image' button and selected an image. But when i press the query button, it gives me the following error:
Processing orientation 1
Processing orientation 2
Processing orientation 3
Processing orientation 4
Processing orientation 5
Processing orientation 6
Code for <Variation in Phase Symetry> Starts
Taking Median for scale 1/4
Taking Median for scale 2/4
Taking Median for scale 3/4
Taking Median for scale 4/4
Code End for <Variation in Phase Symetry>
Reference to non-existent field 'popupmenu_DistanceFunctions'.
Error in cbires>btnExecuteQuery_Callback (line 197)
metric = get(handles.popupmenu_DistanceFunctions, 'Value');
Error in gui_mainfcn (line 96)
feval(varargin{:});
Error in cbires (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in
@(hObject,eventdata)cbires('btnExecuteQuery_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
please someone help me out. I am in great need of this program. Please guide me what can i do. I am using 2013a version. Thanks in advance.
0 Comments
Answers (1)
Geoff Hayes
on 25 Mar 2016
mandy - I observe that same error if I launch the GUI by double-clicking on the cbires.fig file. A GUIDE-created GUI can only be launched from the command line by calling its m file as
>> cbires
or through the MATLAB file editor (by pressing the green run button) or through the GUIDE GUI editor (again by pressing the green arrow button).
Attempting to launch the GUI by double-clicking on the figure file will just display the GUI controls and have very limited functionality. Much of the initializations of objects (for example, the handles structure) will not occur and so the behaviour of the GUI will be unpredictable (or predictable in the sense that it won't work correctly).
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!