Image objects characteristics, area and shape
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi, I am working on images with crowded objects with various circularity and sizes. Is there any way to detect and list all their shapes and sizes (grouping ones with the same area, and grouping ones with the same shape after)? Any answer is appreciated.
0 Kommentare
Antworten (1)
Image Analyst
am 18 Aug. 2017
Sure. I do that in my Image Segmentation Tutorial http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862&sort=downloads_desc
For example:
props = regionprops(labeledImage, 'Area');
allAreas = [props.Area];
bigAreaIndexes = find(allAreas > 10000); % Blobs with an area > 10000 pixels.
% Extract only the big area blobs:
bigBlobs = ismember(labeledImage, bigAreaIndexes);
Similar for circularity or any other measurement.
3 Kommentare
Image Analyst
am 18 Aug. 2017
A look at what? You forgot to post your image.
In the meantime, take a look at this: http://www.mathworks.com/matlabcentral/answers/13205#answer_18099
Siehe auch
Kategorien
Mehr zu Get Started with Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!