MATLAB: How to increase or decrese graythresh value

graythreshMATLAB

rgb=imread('image1.jpg');
Igray=rgb2gray(rgb);
Ibw = im2bw(Igray,graythresh(Igray));
imshow(Igray);

Best Answer

store graythresh(Igray) in a variable and increase/ descrease as u want!