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)?
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일

0 개 추천

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

Ravin Rayeok
Ravin Rayeok 2020년 2월 25일
it works! thanks a lot!
darova
darova 2020년 2월 25일
My plesure!
Ravin Rayeok
Ravin Rayeok 2020년 2월 25일
Sir/Madam, as I try to do with different images manually it says:
Error using area (line 45)
"Must supply Y data or X and Y data as
first argument(s)."
what does that means?
darova
darova 2020년 2월 25일
Impossible!
Can you attach the problem image?
Ravin Rayeok
Ravin Rayeok 2020년 2월 25일
another piece of pores
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개)

카테고리

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

제품

릴리스

R2019b

질문:

2020년 2월 24일

댓글:

2020년 2월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by