Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- % --------------------------------------------------------------------
- function tophat_Callback(hObject, eventdata, handles)
- % hObject handle to tophat (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- image=handles.courant_data;
- se = strel('disk',30);
- b = imtophat(image,se);
- handles.ima_traite = b;
- axes(handles.imgT);
- subimage(b);
- handles.output = hObject;
- guidata(hObject, handles);
- % --------------------------------------------------------------------
- function bottom_hat_Callback(hObject, eventdata, handles)
- % hObject handle to bottom_hat (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- image=handles.courant_data;
- se = strel('disk',30);
- b = imbothat(image,se);
- handles.ima_traite = b;
- axes(handles.imgT);
- subimage(b);
- handles.output = hObject;
- guidata(hObject, handles);
- % --------------------------------------------------------------------
- function gradient_interne_Callback(hObject, eventdata, handles)
- % hObject handle to gradient_interne (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- image=handles.courant_data;
- se = strel('disk',3);
- b = imerode(image,se);
- img = image - b;
- handles.ima_traite = img;
- axes(handles.imgT);
- subimage(img);
- handles.output = hObject;
- guidata(hObject, handles);
- % --------------------------------------------------------------------
- function gradient_externe_Callback(hObject, eventdata, handles)
- % hObject handle to gradient_externe (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- image=handles.courant_data;
- se = strel('disk',3);
- b = imdilate(image,se);
- img = b - image ;
- handles.ima_traite = img;
- axes(handles.imgT);
- subimage(img);
- handles.output = hObject;
- guidata(hObject, handles);
- % --------------------------------------------------------------------
- function gradient_morphologique_Callback(hObject, eventdata, handles)
- % hObject handle to gradient_morphologique (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- image=handles.courant_data;
- se = strel('disk',3);
- a= imerode(image,se);
- b = imdilate(image,se);
- img = b - a ;
- handles.ima_traite = img;
- axes(handles.imgT);
- subimage(img);
- handles.output = hObject;
- guidata(hObject, handles);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement