【正文】
Z39。 case 39。Z339。 PIN3=Z。 case 39。 end subplot(1,7,i)??紤]問(wèn)題不全面。所以以后做實(shí)驗(yàn)一定會(huì)更加的細(xì)心。參數(shù)的選取還是有點(diǎn)的不合適。 Px0=Px1。 PIN5=Z。Z539。 case 39。 PIN1=Z。Z139。 end Z=I2(:,Px0:Px1,:)。 end Px1=Px0。figure(9)。像素和39。車(chē)牌列像素點(diǎn)累計(jì)39。X1=zeros(1,x)。二值化車(chē)牌圖像39。%二值化圖像I2 = bwareaopen(I1,16)。)。(PX2PX1)) PX2=PX27。(PX1x)) PX1=PX1+7。)。),xlabel(39。for j=1:x for i=PY1:PY2 if(I6(i,j,1)==1) X1(1,j)= X1(1,j)+1。while ((Y1(PY2,1)=80)amp。while ((Y1(PY1,1)=80)amp。像素和39。行像素灰度值累計(jì)39。for i=1:y for j=1:x if(I6(i,j,1)==1) Y1(i,1)= Y1(i,1)+1。figure(6)imshow(I5)。 %矩形結(jié)構(gòu)元素I4=imclose(I3,se)。 figure(4)imshow(I3)。se=[1。,39。I1=rgb2gray(I)。 原代碼及運(yùn)行結(jié)果I=imread(39。對(duì)圖像進(jìn)行灰度化處理、邊緣提