1、 光 电 图 像 处 理 课 程 设 计光 电 图 像 处 理 课 程 设 计 说 明 书说 明 书 题 目 车牌提取设计 系 (部) 电子与通信工程系 专业(班级) 09 光电 2 班 姓 名 学 号 2 目录 摘要摘要 . 3 关键词关键词 3 1 MATLAB 简介简介. 4 2 2 车牌定位的仿真车牌定位的仿真 4 2.12.1 原始图像原始图像 CALLBACK:CALLBACK: 4 2.2 2.2 灰度图灰度图 CALLBACK:CALLBACK: . 4 2.3 2.3 边缘检测图边缘检测图 CALLBACK:CALLBACK: 5 2.4 2.4 腐蚀图腐蚀图 CALLBAC
2、K:CALLBACK: . 5 2.5 2.5 去噪图去噪图 CALLBACK:CALLBACK: . 6 2.6 2.6 填充图填充图 CALLBACK:CALLBACK: . 6 2.7 2.7 行合理位置图行合理位置图 CALLBACK:CALLBACK: 7 2.8 2.8 定位图定位图 CALLBACK:CALLBACK: . 8 2.9 2.9 回原图回原图 CALLBACK:CALLBACK: . 9 3 3 车牌定位的分析车牌定位的分析 . 10 4 4 车牌定位的界面设计车牌定位的界面设计 . 10 4.1 4.1 原始图像原始图像 CALLBACK:CALLBACK:.11
3、 4.2 4.2 定定位图位图 CALLBACK:CALLBACK: . 12 5 5 心得体会心得体会 . 13 参考文献参考文献 13 3 摘要摘要 关键关键词词 车牌定位、灰度图、边缘检测图、腐蚀图、去噪图、填充图、Matlab 4 1 MATLAB 简介简介 2 2 车牌定位车牌定位的仿真的仿真 2.12.1 原始图像原始图像 CALLBACK:CALLBACK: function pushbutton1_Callback(hObject, eventdata, handles) name,path=uigetfile(*.*,); file=path,name; x=imread(f
4、ile); axes(handles.axes1); imshow(x); handles.img=x; guidata(hObject, handles); 出图:出图: 2.2 2.2 灰度图灰度图 CALLBACK:CALLBACK: function radiobutton1_Callback(hObject, eventdata, handles) x=handles.img; y=rgb2gray(x); axes(handles.axes1); imshow(y); handles.img1=y; guidata(hObject, handles); 5 出图:出图: 2.3 2
5、.3 边缘检测图边缘检测图 CALLBACK:CALLBACK: function radiobutton2_Callback(hObject, eventdata, handles) x=handles.img1; y=edge(x,robert,0.15,both); axes(handles.axes1); imshow(y); handles.img2=y; guidata(hObject, handles); 出图:出图: 2.4 2.4 腐蚀图腐蚀图 CALLBACALLBACK:CK: function radiobutton3_Callback(hObject, eventda
6、ta, handles) x=handles.img2; se=1;1;1; y=imerode(x,se); axes(handles.axes1); imshow(y); handles.img3=y; guidata(hObject, handles); 6 出图:出图: 2.5 2.5 去噪图去噪图 CALLBACK: CALLBACK: function radiobutton4_Callback(hObject, eventdata, handles) x=handles.img3; se=strel(rectangle,25,25); y=imclose(x,se); axes(handles.axes1); imshow(y); handles.img4=y; guidata(hObject, handles); 出图:出图: 2.6 2.6 填充图填充图 CALLBACK:CALLBACK: function