HI all I am new to Matlab Image Processing toolbox, I really cannot decide to use between
im2bw(gray_image, level);
gray_image < 0.5; ?
for im2bw(gray_image, level); level we can use the the value 0.5 or other value too?
Could anyone please explain me, If I want to Threshold a gray image, which one is better if I want to adjust the threshold level myself ?
If it is the same please kindly tell me thank…
As the
im2bwdocumentation says:This makes it slightly more flexible/convenient than
image < level; depending on how you obtained the image, the values might be in the range 0-255, in which case your alternative would not give the desired result. Otherwise they are equivalent.