Matlab ,, (, 110161) :,Matlab,。,,,,“”。:;;;Matlab:TP391.41 :A:1003-188X(2009)01-0152-030 ,。,,。,,,、。,、、,、。1 、。500,、、。2 Matlab2.1 Matlabimread,:BMP,GIF,TIFF,JPEG(JPG),HDF,PCX,XWD,PNG,ICO,JPG。2.2 2.2.1 :2008-09-11: (1968-),,,。:(1963-),,,,,(E-mail)yklee@syau.edu.cn。 BMPJPG,,m×nm×n×3,,m×n。,;,,。,RGB3,,1。I=αR+βG+χB,R,G,B3,α,β,χ。,α+β+χ=1。,RGB3。Matlab,rgb2gray。,[0.29890.58700.1140]。,,、,[0,1,0][-1,2,0],。2.2.2 ,,,,。,:,。、、;、、·152·20091 1。,,,,。Matlabmedfilt2。2.2.3 ,(),。,,。,,,。Matlabgraythresh,im2bw。2.3 01,。,,。Matlabbwlabel,。3 ,1。1 :I=imread('E:/j.bmp');%imshow(I); %,2(a)g=rgb2gray(I); %m=medfilt2(g); %level=graythresh(m); %bw=im2bw(m,level); %imshow(bw); %,2(b)[l,n]=bwlabel(bw,4); %ndisplay(n); %n,。(a) (b)2 4 :Matlab。,100%,,,,,。,,。:[1] ,,.MATLAB[J].,2006,11(3):300-302.[2] ,,.MATLAB[M].:,2004.[3] ,.Matlab[J].,2006(5):169-171.(156)·153·20091 1DesignonCornShellerbyExtrudingandRubbingMethodChenLidong,MaShuying,ShiLei,FengLizhen(DepartmentofMachineryandElectron,HNUST,Qinhuangdao066600,China)Abstract:Inordertoreducelabour-intensity,improveworkefficiencyoffarmersduringthethreshingcorn,acornthresherwasdesigned.Thedesignmainlyincludesfeedmouth,gridconcaveboardsandashellingcylinderwithboard-teeth,etc.Itscharacteristicisrubthreshingtechniqueusedinthemachine,andthemachinehaveadvantagesofhigherthreshingperformanceandalowerpercentageofkerneldamage.Itiscapableofprocessingbothcommoncornandseedcorn.Keywords:agriculturalmachinery;cornsheller;rubprinciple(153)AbstractID:1003-188X(2009)01-0152-EAGrainCountingMethodBasedonMatlabImageProcessingJiaPeng,LiYongkui,ZhaoPing(EngineeringCollege,ShenyangAgriculturalUniversity,Shenyang110161,China)Abstract:Inviewofthedeficienciesthatgrainiscountedthroughmanpowerandphotoelectricitymethodsatpresent,agraincountingmethod,whichbasedonMatlabimagerecognitionandprocessingtechnology,ispresented;Anditsrelia-bilityisverifiedbyconcreteexample.Thismethodmayreducelaborintensity,makeupforvisualdefectsofperson,im-proveefficiencyandaccuracyandestablishnecessarilytheoreticalandpracticalbasisforfurtherstudies.Itisgreatimpor-tanttoperfect“precisionagriculture”.Keywords:imageprocessing;grain;countingmethod;Matlab《》《》、1979(),:、《》800010,《》,500,2005。、,:200,、300,。,。252,,240。 :14-324 :(0451)86631651 : E-mail:njhyj@vip.sohu.com2009,。·156·20091 1