# how to calculate the three sphere.

2 views (last 30 days)

Show older comments

Hi all,

I have the image 20 images in subplot figure. then the image have three sphere.

Anyone can help me to calculate all the three sphere.

I used this command

T = regionprops('table', outt22,'Area','Centroid')

note: outt22 is the mask of my three volume. but it show only one area of the circle among the images.

T =

1×2 table

Area Centroid

____ ________________

25 149.08 114.68

##### 3 Comments

KSSV
on 23 Sep 2021

### Accepted Answer

Image Analyst
on 23 Sep 2021

##### 8 Comments

Image Analyst
on 23 Sep 2021

I thought that you knew in advance how many rows and columns your images have. If not, you can easily find out by just reading in one of them.

yourImage = imread(yourFileNameOfOneImage);

[rows, columns, numberOfColorChannels] = size(yourImage)

### More Answers (0)

### See Also

### Community Treasure Hunt

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

Start Hunting!