Manual threshold_ What is wrong?
3 views (last 30 days)
Show older comments
Nisreen Sulayman on 12 Sep 2019
Edited: Nisreen Sulayman on 12 Sep 2019
img = imread('cameraman.tif');
%Threshold the image at the intensity level 128
%make all the values in the image less than 128 to 0 and equal or greater than 128 to 255
imgT = img;
if (img(i,j)==128 || img(i,j)>128)
Find more on Image Thresholding 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!