第07章 图像分割070428.ppt

Extracting information form an image Step 1: segment the image ?objects or regions Step 2 : describe and represent the segmented regions in a form suitable for computer processing Step 3 : image recognition and interpretation Image segmentation How do you pick the right segmentation? 例:利用阈值分割图像 I = imread(rice.png); subplot 131, imshow(I); subplot 132, imhist(I); T = 110; S = size(I) [maxI,maxP] = max(I(:,:)) % maxI为图像的最大灰度值,maxP为其位置 [minI,minP] = min(I(:,:)) % minI为图像的最小灰度值,minP为其位置 for i = 1:S(1) for j = 1:S(2) if I(i,j)= T I(i,j)= 255; else I(

文档评论(0)

1亿VIP精品文档

相关文档