Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. img2=rgb2gray(i1);
  2. imshow(img2);
  3. img3=imtophat(img2,strel('disk',15));
  4. img4=imadjust(img3);
  5. layer=img4(:,:,1);
  6. img5=layer>100 & layer<250;
  7. img6=imfill(img5,'holes');
  8. img7=bwareaopen(img6,5);
  9. [L,ans]=bwlabeln(img7);
  10. imshow(img7);
  11. I=imread(i1);
  12. Ians=CarDentIdentification(I);
  13.  
  14. Imgproc.cvtColor(source, middle, Imgproc.COLOR_RGB2GRAY);
  15. Imgproc.equalizeHist(middle, middle);
  16. Imgproc.threshold(middle, middle, 150, 255, Imgproc.THRESH_OTSU);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement