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

📄 ift.m

📁 这是一个MATLAB仿真文件
💻 M
字号:
afm=imread('watershed.tif');
figure,imshow(afm);
se = strel ('disk', 15) ;
Itop = imtophat (afm , se) ;
%figure , imshow( Itop , [ ]) , title ( 'top - hat im2
%age');
Ibot = imbothat (afm , se) ; 
figure , imshow( Ibot , [ ]) , title ('bottom - hat image');
Ienhance = imsubtract (imadd ( Itop , afm) , Ibot) ; 
figure , imshow( Ienhance) , title ('original + top - hat - bottom - hat');
Iec = imcomplement ( Ienhance) ;
figure , imshow( Iec) , title ('complementof enhanced image');
Iemin = imextendedmin( Iec , 22) ; 
figure , imshow( Iemin) , title ('extend2ed minima image’');
Iimpose = imimposemin ( Iec , Iemin) ; 
figure , imshow( Iimpose) , title ( 'imposed minima image');
%18 = bwperim( Iimpose) ; imshow(18);
BW = watershed(Iimpose);
rgb1 = label2rgb(BW);
figure,imshow(rgb1);

⌨️ 快捷键说明

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