⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graylevelwith background.m

📁 gray level slicing with background it is a type of point processing technique used in image pro ce
💻 M
字号:
clc;
clear all
a=imread('pout.tif');
bb=double(a);
[row,col]=size(bb);
LT=input('Enter lower threshold value:');
UT=input('Enter upper threshold value:');
for x=1:1:row
    for y=1:1:col
        if bb(x,y)>= LT 
            if bb(x,y)<= UT
             f(x,y)=255;                                
            else f(x,y)= bb(x,y)
            end
            end
    end
end
       
figure(1)
imshow(uint8(a))
figure(2)
imshow(uint8(f))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -