why in gui program Preprocessing Callback might be unused is shown as an error..???

1 view (last 30 days)
function main_OpeningFcn(hObject, eventdata, handles, varargin) % This function has no output args, see OutputFcn. % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % varargin command line arguments to main (see VARARGIN)
% Choose default command line output for main handles.output = hObject;
% Update handles structure guidata(hObject, handles); set(handles.figure1,'Name','Multimodel Biometric Recognition'); % UIWAIT makes main wait for user response (see UIRESUME) % uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line. function varargout = main_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT); % hObject handle to figure % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure varargout{1} = handles.output;
% -------------------------------------------------------------------- function Input_Callback(hObject, eventdata, handles) % hObject handle to Input (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA)
% -------------------------------------------------------------------- function Gait_Callback(hObject, eventdata, handles) % hObject handle to Gait (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global input1
[f1 p1] = uigetfile( 'Gait\*.bmp', 'Choose any Gait' ); input1=imread([p1 f1]);
axes(handles.GaitImg); imagesc(input1); axis off;axis square; title('Input Gait Energy Image','fontsize',12,'fontname','Times New Roman','color','Black');
% -------------------------------------------------------------------- function Footprint_Callback(hObject, eventdata, handles) % hObject handle to Footprint (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global input2
[f p] = uigetfile( 'Foot print\*.bmp', 'Choose any Footprint' ); input2=imread([p f]);
axes(handles.FootImg); imagesc(input2); axis off;axis square; title('Input Footprint','fontsize',12,'fontname','Times New Roman','color','Black');
% -------------------------------------------------------------------- function Voice_Callback(~, ~, handles) % hObject handle to Voice (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global input3
[f p] = uigetfile( 'Voice\*.wav', 'Choose any Voice' ); input3=wavread([p f]);
axes(h(handles.VoiceInp)); plot(input3);grid on; xlabel('Time(sec)','fontsize',12,'fontname','Times New Roman','color','Black'); ylabel('Amplitude(Volt)','fontsize',12,'fontname','Times New Roman','color','Black'); title('Input Voice','fontsize',12,'fontname','Times New Roman','color','Black');
% -------------------------------------------------------------------- function Preprocessing_Callback(~, ~, handles) % hObject handle to Preprocessing (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) global input1 input2 input3 pre1 pre2 pre3
pre1=medfilt2(input1); pre2=medfilt2(input2); hz = 8000; [S_numer, S_denom] = butter(5, [100/hz 350/hz]); pre3 = filter(S_numer, S_denom, input3);
axes(h(handles.PGaitImg)); %#ok<MAXES> imagesc(pre1); axis off;axis square; title('Preprocessed Gait','fontsize',12,'fontname','Times New Roman','color','Black');
axes(h(handles.PFootImg)); imagesc(pre2); axis off;axis square; title('Preprocessed Foot Print','fontsize',12,'fontname','Times New Roman','color','Black');
axes(h(handles.PVoiceInp)); plot(pre3);grid on; xlabel('Time(sec)','fontsize',12,'fontname','Times New Roman','color','Black'); ylabel('Amplitude(Volt)','fontsize',12,'fontname','Times New Roman','color','Black'); title('Preprocessed Voice','fontsize',12,'fontname','Times New Roman','color','Black');
  2 Comments
Geoff Hayes
Geoff Hayes on 21 Aug 2014
kasthuri - where is the error? More likely it will be shown as a warning that the function is unused. Has it been assigned as a callback to any widget in your GUI?

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks 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!