车牌识别的matlab程序(程序,讲解,模板)_图文.docVIP

  • 78
  • 0
  • 约5.04千字
  • 约 8页
  • 2017-06-25 发布于安徽
  • 举报

车牌识别的matlab程序(程序,讲解,模板)_图文.doc

clc clear close all I=imread(chepai.jpg); subplot(3,2,1);imshow(I), title(原始图像); I_gray=rgb2gray(I); subplot(3,2,2),imshow(I_gray),title(灰度图像); %====================== 形态学预处理 ====================== I_edge=edge(I_gray,sobel); subplot(3,2,3),imshow(I_edge),title(边缘检测后图像); se=[1;1;1]; I_erode=imerode(I_edge,se); subplot(3,2,4),imshow(I_erode),title(腐蚀后边缘图像); se=strel(rectangle,[25,25]); I_close=imclose(I_erode,se); %图像闭合、填充图像 subplot(3,2,5),imshow(I_close),title(填充后图像); I_final=bwareaopen(I_close,2000); %去除聚团灰度值小于2000的部分 subplot(3,2,6),imshow(I_final),title(形态滤波后图像); %===

文档评论(0)

1亿VIP精品文档

相关文档