Image objects characteristics, area and shape

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.

답변 (1개)

Image Analyst
Image Analyst 2017년 8월 18일

0 개 추천

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

Tian Tian
Tian Tian 2017년 8월 18일
Hi, thank you for your help. When I use the regionprops to extract object information, it only gave me three area values (i used multithreholding, so my image is like black gray & white). I wonder whether the threholded image is regarded as three objects only (even there are some little grains)? Thank you.
Tian Tian
Tian Tian 2017년 8월 18일
Because when a table is used to list all of them, it listed all pixels (which is the image size). The code I used for threholding is: I0 = imread('A1-1a-mulsoil_0703.tif'); imshow(I0) I = imgaussfilt(I0,2); thresh = multithresh(I,2); seg_I = imquantize(I,thresh); figure imshow(seg_I,[]) title ('threholded')
Could you please have a look? Many thanks.
A look at what? You forgot to post your image.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

질문:

2017년 8월 18일

댓글:

2017년 8월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by