MATLAB,车牌定位仿真源码程序 - vb源码程序 - 谷速源码
下载频道> 资源分类> 编程语言> VB源码> MATLAB,车牌定位仿真源码程序

标题:MATLAB,车牌定位仿真源码程序
分享到:

所属分类: VB源码 资源类型: 文件大小: 187.75 KB 上传时间: 2016-01-28 20:49:28 下载次数: 16 资源积分:1分 提 供 者: xiaopeng2 点击下载
内容:
MATLAB,车牌定位仿真源码程序,程序员在编程的过程中可以参考学习使用,希望对IT程序员有用,此源码程序简单易懂、方便阅读,有很好的学习价值!
function [PY1,PY2,PX1,PX2]=projection(I,a,b,c,d)
%功能:投影
 %注:行与列的不同特征决定了它们的位置计算方法不同,确定行是从中间到两边 而确定
 %      列是从两边倒中间。对于列图像,由于是分开的单个字母,所以中间有空的地方,
 %      不能使用与确定行时相同的方法。
 
%step1:计算输入图像大小
[y,x,z]=size(I);
I1=double(I);
 
 %step2:车牌的列起始位置和终止位置的计算
 %统计各行方向像素点的和%
 Y1=zeros(y,1);
 for i=1:y
    for j=1:x
             if(I1(i,j,1)==1) 
                Y1(i,1)= Y1(i,1)+1; 
            end  
     end       
 end
 [temp MaxY]=max(Y1);
 figure();
 subplot(2,1,1),plot(0:y-1,Y1),title('各行方向像素点之和累计'),xlabel('y'),ylabel('累计像素量');
 
 %求的车牌的行起始位置和终止位置
 PY1=MaxY;%确定上边界
 while ((Y1(PY1,1)>=a)&&(PY1>1))
        PY1=PY1-1;
 end    
 PY2=MaxY;%确定下边界
 while ((Y1(PY2,1)>=b)&&(PY2<y))
        PY2=PY2+1;
 end
 IY=I(PY1:PY2,:,:);
 
 
 %step3:车牌的列起始位置和终止位置的计算
 
%统计各列方向像素点的和%
 X1=zeros(1,x);
 for j=1:x
     for i=PY1:PY2%减少计算量
            if(I1(i,j,1)==1)
                X1(1,j)= X1(1,j)+1;               
            end  
     end       
 end
 subplot(2,1,2),plot(0:x-1,X1),title('各列方向像素点之和累计'),xlabel('x'),ylabel('累计像素量');
 
 %求的车牌的列起始位置和终止位置%
 PX1=1;%确定左边界
 while ((X1(1,PX1)<c)&&(PX1<x))%原为3
       PX1=PX1+1;
 end    
 PX2=x;%确定右边界
 while ((X1(1,PX2)<d)&&(PX2>PX1))
        PX2=PX2-1;
 end
 PX1=PX1-1;
 PX2=PX2+1;
 
  %step4:控制坐标范围,保证不出边界
 %控制行坐标
  if PY1==0
     PY1=1;
 end
  if PY2>y
     PY1=y;
  end
  %控制列坐标
  if PX1==0
     PX1=1;
 end
 if PX2>x
     PX2=x;
 end

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

MATLAB,车牌定位仿真源码程序/
MATLAB,车牌定位仿真源码程序/programs_and_pictures/
MATLAB,车牌定位仿真源码程序/programs_and_pictures/0.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/1.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/2.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/3.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/4.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/5.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/6.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/7.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/8.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/9.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/A.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/C.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/D.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/DSC01333.JPG
MATLAB,车牌定位仿真源码程序/programs_and_pictures/E.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/G.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/H.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/J.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/K.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/L.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/M.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/N.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/Q.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/R.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/U.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/W.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/Z.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/blue_hsv.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/dingwei1.m
MATLAB,车牌定位仿真源码程序/programs_and_pictures/dingwei2.m
MATLAB,车牌定位仿真源码程序/programs_and_pictures/dingwei3.m
MATLAB,车牌定位仿真源码程序/programs_and_pictures/dingwei4.m
MATLAB,车牌定位仿真源码程序/programs_and_pictures/getblue.m
MATLAB,车牌定位仿真源码程序/programs_and_pictures/jianqie1.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/jianqie2.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/jianqie3.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/jianqie4.jpg
MATLAB,车牌定位仿真源码程序/programs_and_pictures/projection.m
MATLAB,车牌定位仿真源码程序/programs_and_pictures/test.m
MATLAB,车牌定位仿真源码程序/programs_and_pictures/yuchuli.m
MATLAB,车牌定位仿真源码程序/programs_and_pictures/zifufg.m

关键词: 车牌 源码 程序

编程语言下载排行

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved