I want to find mean dispersion of the white particles from an image using the formula given in the figure attached with this question.

조회 수: 2 (최근 30일)
I want to find the mean dispersion of the white particles from an image using the formula given with this question. I am also attaching the figure from which mean dispersion is to be estimated. Further I want to do the curve fitting with the data obtained for the mean dispersion. Also attaching the figure to be obtained for mean dispersion. I could not get some clue how to proceed with this.

답변 (1개)

Image Analyst
Image Analyst 2022년 5월 31일
First find a mask for the pile of particles. Several ways to do that - shouldn't be hard.
Then I'd use a classification routine like discriminant analysis or kmeans to classify every pixel in the image into one of the main colors. Then take the brightest cluster, which will be white. Or try using the Color Thresholder app on the Apps tab of the tool ribbon. Demos attached.
So now you have a mask of all the white pixels. Then just scan across getting the RMS distance
[rows, columns] = size(mask);
D = zeros(1, columns);
for col = 1 : columns
thisColumn = mask(:, col);
yValues = find(thisColumn);
meanY = mean(yValues);
D(col) = sqrt(mean((yValues - meanY) .^ 2))
end
  댓글 수: 6
AASHNA SUNEJA
AASHNA SUNEJA 2022년 7월 7일
Want to find the dispersion of the white particles using the formula attached with this comment.
Image Analyst
Image Analyst 2022년 7월 7일
Which of your variables do you consider to be y? After that the formula is simple.
D = sqrt(sum((y - mean(y)).^2)/numel(y));

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

카테고리

Help CenterFile Exchange에서 Spectral Measurements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by