how to calculate the three sphere.

1 回表示 (過去 30 日間)
mohd akmal masud
mohd akmal masud 2021 年 9 月 23 日
コメント済み: Image Analyst 2021 年 9 月 23 日
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 件のコメント
mohd akmal masud
mohd akmal masud 2021 年 9 月 23 日
Yes I have individual images.
But if i view individual image, it will be have 20 figure.
So I have to calculate the volume every single image. With repeatition command.
What I supposed is just view 20 images in one subplot, then calculate for all three sphere volume
KSSV
KSSV 2021 年 9 月 23 日
You have to calculate that for each image and store into array. Calculating in the attched image is not feasible.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2021 年 9 月 23 日
You need to stack these images together into a 3-D volumetric image, and then use regionprops3() instead of regionprops().
  8 件のコメント
mohd akmal masud
mohd akmal masud 2021 年 9 月 23 日
I wrote this, then function
image3d = zeros(256, 256, numFiles, 'uint8');
Image Analyst
Image Analyst 2021 年 9 月 23 日
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)

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by