Size Distribution code for analysis
1 回表示 (過去 30 日間)
古いコメントを表示
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.|||||
0 件のコメント
回答 (1 件)
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.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Segmentation and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!