How to convert image into binary in axes at GUI MATLAB ?

1 次查看(过去 30 天)
handles.axes=hObject;
A = getimage(handles.axes1);
B = ???convert binary???
imshow (B,'Parent',handles.axes2);

回答(1 个)

Geoff Hayes
Geoff Hayes 2016-8-29
muhammad - see im2bw which will cover an RGB image into a binary one (subject to some threshold). Note that this function is part of the Image Processing Toolbox.

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by