Clear Filters
Clear Filters

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

1 view (last 30 days)
handles.axes=hObject;
A = getimage(handles.axes1);
B = ???convert binary???
imshow (B,'Parent',handles.axes2);

Answers (1)

Geoff Hayes
Geoff Hayes on 29 Aug 2016
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.

Categories

Find more on Convert Image Type 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!