- Check out the following MATLAB Answer describing a way to calculate outer surface area of a 3D cross section of the head: https://www.mathworks.com/matlabcentral/answers/162352-surface-area-calculation-for-irregular-shape
- Alternatively, since you have calculated the sum of outer surface area and the inner surface area, you may try subtracting the inner surface area. You can calculate the inner surface area of the objects by filling holes in the original object and then subtracting the original object from the newly obtained one. For instance refer to the following MATLAB Answer mentioning a method to calculate inner surface area of an object: https://www.mathworks.com/matlabcentral/answers/36358-inner-surface-of-an-object
Surface area of a 3D irregular hollow structure
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Aditya
el 8 de Sept. de 2024
Comentada: Aditya
el 8 de Sept. de 2024
Hello,
I am working with image processing of a flame using OH-LIF measurement. I unfortunately can't share the image because its part of a research but as a generalized shape it looks like a hollow cylinder. My objective is to perform edge detection on the flame and then stack them together to get a 3D volume and then calculate the outer surface area of the resulting flame, which will be used for calculations later. I have the 3D volume and tried to use the isosurface function to extract faces and vertices and applied a sort of triangulation method to get the surface area.
volume is a 523x554x132 matrix
[F,V]=isosurface(volume)
function surfaceArea = calculateSurfaceArea(F, V)
% Calculate the surface area of the 3D surface using the transformed vertices
surfaceArea = 0;
for i = 1:size(F, 1)
% Get the vertices of the i-th triangle
v1 = V(F(i, 1), :);
v2 = V(F(i, 2), :);
v3 = V(F(i, 3), :);
% Compute the area of the triangle using the cross product
a = v2 - v1;
b = v3 - v1;
area = norm(cross(a, b)) / 2;
% Accumulate the area
surfaceArea = surfaceArea + area;
end
end
I do get a result using this but since my structure is hollow i get the surface area of the outer and inner surface as well, but i need only the outer surface area. I also tried to use the AlphaShape method and the corresponding boundaryfacets function but didn't get any different answers. Is there a way to extract just the outer surface area, or simplify the geometry? Thanks in advance.
0 comentarios
Respuesta aceptada
Shubham
el 8 de Sept. de 2024
Editada: Shubham
el 8 de Sept. de 2024
Hey Aditya,
I understand that you wish to calculate outer surface area of an hollow irregular 3D object.
In order to fill a hollow cylinder, you can use the "imfill" function. You may fill the holes in the segmented 2D images before combining them to form the 3D object. For more information, refer to the following MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/1805175-fill-empty-cylinders-in-binary-volume
I hope this helps!
Más respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!