Radial Distribution of particle centers

조회 수: 7 (최근 30일)
yu sh
yu sh 2016년 6월 13일
댓글: mejdi rogbist 2019년 4월 6일
Hi everyone, I have the following aggregate structure of different colored particles. I want to compute the radial distribution of particle centers for the aggregate (agglomerate). This structured is formed with the help of voxel information from binary images obtained through X-ray tomography. Any suggestion would be highly appreciated, thanks in advance.

답변 (1개)

Image Analyst
Image Analyst 2016년 11월 25일
Just create an array. Like if you have an array of xCenters and yCenters and zCenters
distances = sqrt(xCenters.^2 + yCenters .^ 2 + zCenters .^ 2);
radialDistribution = zeros(1, length(distances));
for k = 1 : length(xCenters)
thisDistance = round(distances(k)); % Convert distance into an index.
radialDistribution(thisDistance) = radialDistribution(thisDistance) + 1;
end
bar(radialDistribution, 'BarWidth', 1);
grid on;
  댓글 수: 7
Image Analyst
Image Analyst 2019년 4월 5일
편집: Image Analyst 2019년 4월 5일
I will not be typing that all in, from that picture. Would you if you were me, when you can simply attach the m-file with the paper clip icon?
mejdi rogbist
mejdi rogbist 2019년 4월 6일
Thank's a lot Image Analyst, you find attached the m file. I couldn't attach my data position (file.xyz). I will be happy to find a solution of my problem.

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

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by