This presentation is the property of its rightful owner.
Sponsored Links
1 / 24

实验九 数字图像的边界提取 PowerPoint PPT Presentation


  • 81 Views
  • Uploaded on
  • Presentation posted in: General

实验九 数字图像的边界提取. 一、实验目的. 了解有关数字图像边界提取的基本概念,熟悉 MATLAB 软件中关于数字图像边界提取的基本命令,掌握利用 MATLAB 软件进行数字图像边界提取的方法;同时,学会在图上加图题,会控制图题的位置。. 二、相关知识. 在图像处理中,有一种十分实用的操作叫做边界提取,在提取了图像的边界后,就可以对图像进行进一步的操作,如图像分割、特定区域的提取、骨架提取等等。 常用的边界检测算子有微分算子、拉普拉斯高斯算 子和 canny 算子。 在 MATLAB 中,系统提供 edge 函数,其功能是利用各种边界检测算子来检测灰度图像的边界。

Download Presentation

实验九 数字图像的边界提取

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


6244634


6244634

  • MATLABMATLAB


6244634

  • canny

  • MATLABedge

  • edge


6244634

  • 1BW=edge(I)

  • 2BW=edge(I,method)

  • 3BW=edge(I,method,thresh)

  • 4BW=edge(I,method,thresh,direction)

  • canny

  • MATLABedge

  • edge


6244634

  • 1BW=edge(I)

  • 2BW=edge(I,method)

  • 3BW=edge(I,method,thresh)

  • 4BW=edge(I,method,thresh,direction)

  • I

  • method

  • sobelprewittrobertslog

  • zerocrosscannysobel


6244634

  • thresh

  • thresh

  • directionsobelprewitt

  • horizontalvertical

  • both

  • I

  • method

  • sobelprewittrobertslog

  • zerocrosscannysobel


6244634

  • thresh

  • thresh

  • directionsobelprewitt

  • horizontalvertical

  • both

  • BW1

  • canny


6244634

  • sobel prewitt roberts

  • log zerocrosscanny

  • rice.tif

  • BW1

  • canny


6244634

  • sobel prewitt roberts

  • log zerocrosscanny

  • rice.tif

  • I=imread('rice.tif');

  • BW1=edge(I,'sobel');

  • BW2=edge(I,'prewitt');

  • BW3=edge(I,'roberts');

  • BW4=edge(I,'log');

  • BW5=edge(I,'zerocross');


6244634

  • BW6=edge(I,'canny');

  • imshow(I);title('1: rice.tif', 'fontsize',

  • 14,'position',[128,280,0]);

  • figure;imshow(BW1);

  • title('2: sobel','fontsize',

  • I=imread('rice.tif');

  • BW1=edge(I,'sobel');

  • BW2=edge(I,'prewitt');

  • BW3=edge(I,'roberts');

  • BW4=edge(I,'log');

  • BW5=edge(I,'zerocross');


6244634

  • BW6=edge(I,'canny');

  • imshow(I);title('1: rice.tif', 'fontsize',

  • 14,'position',[128,280,0]);

  • figure;imshow(BW1);

  • title('2: sobel','fontsize',

  • 14,'position',[128,280,0])

  • figure;imshow(BW2);

  • title('3: prewitt','fontsize',

  • 14,'position',[128,280,0])

  • figure;imshow(BW3);


6244634

  • title('4: roberts','fontsize', 14,

  • 'position',[128,280,0])

  • figure;imshow(BW4);

  • title('5: log','fontsize',14,

  • 'position',[128,280,0])

  • 14,'position',[128,280,0])

  • figure;imshow(BW2);

  • title('3: prewitt','fontsize',

  • 14,'position',[128,280,0])

  • figure;imshow(BW3);


6244634

  • title('4: roberts','fontsize', 14,

  • 'position',[128,280,0])

  • figure;imshow(BW4);

  • title('5: log','fontsize',14,

  • 'position',[128,280,0])

  • figure;imshow(BW5);

  • title('6: zerocross','fontsize',14,

  • 'position',[128,280,0])

  • figure;imshow(BW6);

  • title('7: canny','fontsize',14,

  • 'position',[128,280,0])


6244634

  • canny


6244634

  • titletitletitle()title(...,'',,...)position[x,y,z][0 0 0]unitsunitspixels | normalized | inches | centimeters | points | {data}normalized[0,1][0,1]1 point = 1/72 inch


6244634

  • colorfontnamefontsizehelp

  • rice.tifedge[x,y,z][0 0 0]unitsunitspixels | normalized | inches | centimeters | points | {data}normalized[0,1][0,1]1 point = 1/72 inch


6244634

  • colorfontnamefontsizehelp

  • rice.tifedge


6244634

  • I=imread('rice.tif');

  • [BW1,th1]=edge(I,'sobel');

  • th1str=num2str(th1)

  • imshow(I)title('1: rice.tif', 'fontsize',14,'position',[128,280,0]);


6244634

  • I=imread('rice.tif');

  • [BW1,th1]=edge(I,'sobel');

  • th1str=num2str(th1)

  • imshow(I)title('1: rice.tif', 'fontsize',14,'position',[128,280,0]);

  • figure;imshow(BW1);ti='8: sobel,';

  • ti=strcat(ti,th1str);title(ti,'fontsize',12,'position',[128,280,0])


6244634

  • figure;imshow(BW1);ti='8: sobel,';

  • ti=strcat(ti,th1str);title(ti,'fontsize',12,'position',[128,280,0])


6244634

  • [BW1,th1]=edge(I,'sobel',0.05);

  • 98


6244634

  • 1text.tiftestpat1.tifblood1.tifnodules1.tif14

  • 2bonemarr.tif


6244634

  • 3circbw.tif

  • 4

  • 14

  • 2bonemarr.tif


6244634

  • 3circbw.tif

  • 4


  • Login