Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img2=rgb2gray(i1);
- imshow(img2);
- img3=imtophat(img2,strel('disk',15));
- img4=imadjust(img3);
- layer=img4(:,:,1);
- img5=layer>100 & layer<250;
- img6=imfill(img5,'holes');
- img7=bwareaopen(img6,5);
- [L,ans]=bwlabeln(img7);
- imshow(img7);
- I=imread(i1);
- Ians=CarDentIdentification(I);
- Imgproc.cvtColor(source, middle, Imgproc.COLOR_RGB2GRAY);
- Imgproc.equalizeHist(middle, middle);
- Imgproc.threshold(middle, middle, 150, 255, Imgproc.THRESH_OTSU);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement