Pore size distribution chart

4 次查看(过去 30 天)
Hello,
I need some assistance here...
I would love to know how do you create a distribution chart based on size and number (amount) of the pores.
Thank you!
  2 个评论
darova
darova 2020-2-24
Can you show distribution chart you want to see (simple drawing)?
Ravin Rayeok
Ravin Rayeok 2020-2-25
It's about like this but it also depends on the small pore (white pixel).
And on the left bottom side of the picture above, there's some kind of noise or small black pixels on the white pixel pore that may separate the white pore and eventually lead to missinterpretation.

请先登录,再进行评论。

采纳的回答

darova
darova 2020-2-25
编辑:darova 2020-2-25
Use regionprops
I = imread('image.jpeg');
I1 = im2bw(I); % binarize image
cc = bwconncomp(I1); % or 'bwlabel' to separate each region
stats = regionprops(cc, 'Area'); % calculate area of each separate region
area = cat(1,stats.Area);
area(area>500) = []; % filter bigger blobs/regions
hist(area,20) % histogram of 20 groups
xlabel('size')
ylabel('number')
result
  7 个评论
darova
darova 2020-2-25
Sorry, forgot this line
area = cat(1,stats.Area);
I correct the code. Look
Ravin Rayeok
Ravin Rayeok 2020-2-25
ah i see, sorry
and thank you again! :)

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by