i=imread('flair.jpg'); [m,n]=size(i); i2 = zeros(size(i)); for y =1:m for x=1:n if i(y,x) >= 0.2 && i(y,x) <= 0.7 i2(y,x) = 1; end end end figure; imshow(i2), title("Double Tresholding Segmentation");
i1 = im2double(i);
if
i1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)