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

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

Answers (1)

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

Asked:

on 26 Aug 2016

Answered:

on 29 Aug 2016

Community Treasure Hunt

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

Start Hunting!