필터 지우기
필터 지우기

Size Distribution code for analysis

조회 수: 2 (최근 30일)
Mohammed Saleh
Mohammed Saleh 2013년 4월 2일
I have a black and white images containing different individual granules of different sizes. Is there a code to find the size distribution?. If possible, I would like to calculate the area of the individual particles in the image.
|||Many thanks.|||||

답변 (1개)

Jeff E
Jeff E 2013년 4월 2일
If your "black and white" images are binary images, and you have the Image Processing Toolbox, then you can simply feed them into REGIONPROPS:
stats = regionprops(binary_image, 'Area');
granule_areas = [stats.Area];
This returns a structure, stats, which contains each object's area, which is then turned into a vector, granule_areas. At that point it's up to you to decide how you would like to calculate their distribution.

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by