# how to calculate the total volume

1 view (last 30 days)
mohd akmal masud on 22 Sep 2021
Commented: mohd akmal masud on 22 Sep 2021
Hi all,
I have image below. the whole image have 3 sphere actually. anyone konw hot to calculate the whole all the three sphere?
i use code below but that is not answer that i want
T1 = regionprops(outt22,"Centroid","Area")
T1 =
struct with fields:
Area: 25
Centroid: [149.08 114.68]

Imaiyan Chitra Ragupathy on 22 Sep 2021
Edited: Imaiyan Chitra Ragupathy on 22 Sep 2021
mohd akmal masud on 22 Sep 2021
its work.
T1 =
1×18 table
Volume Centroid BoundingBox SubarrayIdx Image EquivDiameter Extent VoxelIdxList VoxelList PrincipalAxisLength Orientation EigenVectors EigenValues ConvexHull ConvexImage ConvexVolume Solidity SurfaceArea
______ __________________________ ____________ ______________________________________________________________ _____________ _____________ _______ _____________ _____________ _________________________ __________________________ ____________ ____________ _____________ _____________ ____________ ________ ___________
25 149.08 114.68 1 [1×6 double] {[112 113 114 115 116 117]} {[146 147 148 149 150 151 152]} {6×7 logical} 3.6278 0.59524 {25×1 double} {25×3 double} 6.656 5.5556 1.1547 66.651 0 0 {3×3 double} {3×1 double} {27×3 double} {6×7 logical} 30 0.83333 55.224
but it only for the big sphere. how to appear the second and third sphere?

R2021a

### Community Treasure Hunt

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

Start Hunting!

Translated by