Demo entry 6356407

1

   

Submitted by 1 on Apr 18, 2017 at 12:47
Language: Matlab. Code size: 309 Bytes.

对图片边缘点的提取
 
F=imread('butterfly.jpg');
F1=~im2bw(F); 
F2=bwfill(F1,'holes'); 
SE=ones(3) 
F3=imdilate(F2,SE); 
F4=bwperim(F2); 
figure,imshow(F4); 
imwrite(F4,' butterfly2.jpg ');
%对边缘点的坐标化 
a=imread('picture.bmp'); b=rgb2gray(a); c=edge(b); 
imshow(double(c));
c[x,y]=find(c) plot(y,x,'k.') 

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).