Help To Crop Dilated Images
2 views (last 30 days)
hi, how can I crop or get the ROI of the white area (the rectangle) of the image? I used imdilate then imfill.
here's the code:
Id = imdilate(gg1, strel('diamond', 1));
figure, imshow(Id); title('Dilation');
If = imfill(Id, 'holes');
figure, imshow(If); title('Fill');
Walter Roberson on 5 Feb 2016
bwareafilt() and then look for the blob that best matches the right aspect ratio (in the bounding box) out of what is left ?
Dima Lisin on 5 Feb 2016
I would use regionprops. It can compute many shape parameters, such as area, perimeter, eccentricity, etc. You can probably come up with a some combination of those parameters, that will let you tell the license plane from the other shapes.