how can i connect two objects with SE
1 view (last 30 days)
Show older comments
Hello,
i want to ask something, it's about choosing Structure Element for binary image
i have an binary image like this :

here is my code :
function process2_erode_Callback(hObject, eventdata, handles)
% hObject handle to process2_erode (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global mol;
global jk;
mol = handles.m;
[rows, columns] = size(mol);%
SE = strel('arbitrary',eye(1));
jk = imerode(mol,SE);
%jk3 = bwmorph(mol,'thicken','inf');
jk3 = imdilate(jk,SE);
guidata(hObject,handles);
axes(handles.axes6); %#ok
imshow(jk3);
%handles.m = jk3;
guidata(hObject,handles);
msgbox('Morphology SUCCESSFUL !');
i also insert my matlab program.
my question is : i want to connecting the curve object into one object, what is the best SE which i can use to connect it? I need reccomendation for this
Thanks
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!