![](https://csdnimg.cn/release/download_crawler_static/86949979/bg1.jpg)
1.利用 MATLAB研究图像分割与边缘检测的常用算法原理;
2.掌握 MATLAB图像域值分割与边缘检测函数的使用方法;
3.了解边缘检测的算法和用途,比较 Sobel、Prewitt、Canny 等算子边缘检
1.图像阈值分割
clear all, close all;
I = imread('cameraman.tif');
figure (1),imshow(I)
figure(2); imhist(I)
T=120/255;
subplot(1,2,1), imshow(Ibw1);
T=graythresh(I);
Ibw2 = im2bw(I,T);
subplot(1,2,2), imshow(Ibw2);
help im2bw;
clear all, close all;
I = imread('cameraman.tif');
figure (1),imshow(I)