Can someone explain me the following segmentation code for number plates ? what technique is applied here ?
조회 수: 3 (최근 30일)
이전 댓글 표시
stats = regionprops(img3); %segmentation
S = ' ';
for index=1:length(stats)
if stats(index).Area > 200 && stats(index).BoundingBox(3)*stats(index).BoundingBox(4) < 30000
x = ceil(stats(index).BoundingBox(1));
y= ceil(stats(index).BoundingBox(2));
widthX = floor(stats(index).BoundingBox(3)-1);
widthY = floor(stats(index).BoundingBox(4)-1);
subimage(index) = {img3(y:y+widthY,x:x+widthX,:)};
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 6월 26일
It is just looking for connected blobs with area between 200 and 30000.
댓글 수: 3
Image Analyst
2015년 6월 27일
It looks at the area of each blob, stats(index).Area, and if the area is between 200 and 30000, it extracts the bounding box of that blob out into its own image and then places that extracted image into one cell of a cell array called subimage.
And see my Image Segmentation Tutorial: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!