资源简介

用于MATLAB图像的识别分割处理,里面包含了分割的程序和实例

资源截图

代码片段和文件信息

I = imread(‘chrimage.bmp‘);
figureimshow(I);
I2 = rgb2gray(I);
s = size(I2);
I4 = 255*ones(s(1) s(2) ‘uint8‘);
I5 = imsubtract(I4I2);
I3 = medfilt2(I5[5 5]);
I3 = imadjust(I3);
bw = im2bw(I3 0.3);
bw = bwareaopen(bw 10);
figureimshow(bw);
[labelednumobjects] = bwlabel(bw4);
RGB_label=label2rgb(labeled@spring‘c‘‘shuffle‘);
figureimshow(RGB_label);
chrdata = regionprops(labeled‘basic‘)
allchrs = [chrdata.Area];
num = size(allchrs)
nbins = 20;
figurehist(allchrsnbins);
title(num(2))

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     662326  2005-10-28 22:59  Matlab_Image_Processing(1)\ex1\chrimage.bmp

     文件        522  2005-12-02 18:19  Matlab_Image_Processing(1)\ex1\ex1.m

    ..A.SH.      6144  2009-05-17 16:41  Matlab_Image_Processing(1)\ex1\Thumbs.db

     文件        206  2005-11-05 17:12  Matlab_Image_Processing(1)\ex2\2.bmp

     文件        206  2005-11-05 17:12  Matlab_Image_Processing(1)\ex2\4.bmp

     文件        206  2005-11-05 17:12  Matlab_Image_Processing(1)\ex2\8.bmp

     文件        206  2005-11-05 17:12  Matlab_Image_Processing(1)\ex2\B.bmp

     文件      61837  2005-10-28 22:59  Matlab_Image_Processing(1)\ex2\car.jpg

     文件       1453  2005-12-02 18:46  Matlab_Image_Processing(1)\ex2\ex2.m

     文件        190  2005-11-27 15:48  Matlab_Image_Processing(1)\ex2\M.bmp

     文件        206  2005-11-05 17:13  Matlab_Image_Processing(1)\ex2\P.bmp

    ..A.SH.     14336  2009-05-17 16:45  Matlab_Image_Processing(1)\ex2\Thumbs.db

     文件       2355  2005-12-02 18:41  Matlab_Image_Processing(1)\ex3\ex3.m

     文件       3126  2005-11-13 20:43  Matlab_Image_Processing(1)\ex3\nums\0.bmp

     文件       3126  2005-11-13 20:43  Matlab_Image_Processing(1)\ex3\nums\1.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\10.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\11.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\12.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\13.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\14.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\15.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\16.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\17.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\18.bmp

     文件       3126  2005-11-13 20:50  Matlab_Image_Processing(1)\ex3\nums\19.bmp

     文件       3126  2005-11-13 20:43  Matlab_Image_Processing(1)\ex3\nums\2.bmp

     文件       3126  2005-11-13 20:51  Matlab_Image_Processing(1)\ex3\nums\20.bmp

     文件       3126  2005-11-13 20:51  Matlab_Image_Processing(1)\ex3\nums\21.bmp

     文件       3126  2005-11-13 20:51  Matlab_Image_Processing(1)\ex3\nums\22.bmp

     文件       3126  2005-11-13 20:51  Matlab_Image_Processing(1)\ex3\nums\23.bmp

............此处省略95个文件信息

评论

共有 条评论