![]() ![]() Here is my code: function letters = PengenalanPlatMobil(citra)Ĭitra=imresize(citra,) % Resizing the image keeping aspect ratio same.Ĭitra_bw=rgb2gray(citra) % Converting the RGB (color) image to gray (intensity).Ĭitra_filt=medfilt2(citra_bw,) % Median filtering to remove noise.Ĭitra_dilasi=imdilate(citra_filt,se) % Dilating the gray image with the structural element.Ĭitra_eroding=imerode(citra_filt,se) % Eroding the gray image with structural element.Ĭitra_edge_enhacement=imsubtract(citra_dilasi,citra_eroding) % Morphological Gradient for edges enhancement.Ĭitra_edge_enhacement_double=mat2gray(double(citra_edge_enhacement)) % Converting the class to double.Ĭitra_double_konv=conv2(citra_edge_enhacement_double,) % Convolution of the double image fĬitra_intens=imadjust(citra_double_konv,0.1) % Intensity scaling between the range 0 to 1.Ĭitra_logic=logical(citra_intens) % Conversion of the class from double to binary. I want to develop a matlab program that can extract and recognize the plate number of vehicle with template matching method. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |