How to calculate the total voxelvalue?

1 回表示 (過去 30 日間)
mohd akmal masud
mohd akmal masud 2023 年 4 月 15 日
コメント済み: Walter Roberson 2023 年 4 月 15 日
Dear all,
I have the code below. the problem is, I want to calculate the total voxel value in table.
Just now what I doing is the total voxel value I have to copy first in workspace table, then paste in excel, then I summation it. very take time.
anyone can help me?
I try replace "VoxelValue" to "TotalVoxelValue", but it doest not work
All the data set as attached.
I-131sphere10nisbah1.dcm = I-131sphere10nisbah1.mat
Segmentation.seg.nrrd = Segmentation.seg.mat
clc
clear all
close all
[spect map]=dicomread('I-131sphere10nisbah1.dcm');
spect= squeeze(spect);
info = dicominfo('I-131sphere10nisbah1.dcm');
g = nrrdread('Segmentation.seg.nrrd');
figure; imshow3D(g)
figure, imshow3D(spect)
data = regionprops3(g,spect,'Volume','VoxelValues', 'Centroid')
  1 件のコメント
Walter Roberson
Walter Roberson 2023 年 4 月 15 日
sum(g, 'all')
maybe?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDICOM Format についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by