Postingan

Menampilkan postingan dari 2020

THRESHOLDING CITRA DIGITAL – (Matlab)

Gambar
THRESHOLDING CITRA DIGITAL – (Matlab) Scribe coding untuk Push Button atau tombol Open Image     % --- Executes on button press in pushbutton1. function pushbutton1_Callback(hObject, eventdata, handles) [name_file1,name_path1] = uigetfile( ...     { '*.bmp;*.jpg;*.tif' , 'files of type (*.bmp,*.jpg,*.tif)' ;     '*.bmp' , 'file Bitmap (*.bmp)' ; ...      '*.jpg' , 'file jpeg (*.jpg)' ; ...     '*.tif' , 'file Tif (*.tif)' ; ...     '*.*' , 'all files (*.*) ' }, ...     'Open Image' ); if ~isequal(name_file1,0)     handles.data1=imread (fullfile(name_path1,name_file1));     guidata (hObject, handles);     axes (handles.axes1);     imshow (handles.data1); else     return ;  end Scribe coding untuk Push Button atau tombol Grayscale % --- Executes on button press in pushbutton2. function pushbutton2_Callback(hObject, eventdata, handles)