Radial Distribution of particle centers
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153829/image.jpeg)
0 comentarios
Respuestas (1)
Image Analyst
el 25 de Nov. de 2016
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 comentarios
Image Analyst
el 5 de Abr. de 2019
Editada: Image Analyst
el 5 de Abr. de 2019
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
el 6 de Abr. de 2019
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.
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!