HOW TO CALCULATE THE TOTAL COUNTS PIXEL USING BINARIZE

조회 수: 1 (최근 30일)
mohd akmal masud
mohd akmal masud 2021년 8월 2일
댓글: mohd akmal masud 2021년 8월 6일
Hi all,
i try use the Gradient Weight segmentation funtion (as script).
I binarize it. Only got the volume (T1) like below. Means 178 multiply by the volume of one voxel(0.1ml) = 17.8 ml.
Can someone help me how to get the total counts, mean count, max count inside the volume??
T1 =
1×2 table
Area Centroid
____ __________________________
178 75.893 58.36 44.539
[spect map]=dicomread('I-131sphere10nisbah1');
info = dicominfo('I-131sphere10nisbah1');
%gp=info.SliceThickness;
spect=(squeeze(spect));%smooth3
aa=size(spect);aa=aa(3);
% NI KALAU VOLUME 1 10 NISBAH V1
seedR1 = 58; seedC1 = 76; seedP1 = 45;
W1 = graydiffweight(spect, seedC1, seedR1, seedP1 , 'GrayDifferenceCutoff', 1415);
thresh = 0.004196;
[BW1, D1] = imsegfmm(W1, seedC1, seedR1, seedP1, thresh);
figure, imshow3D(BW1)
T1 = regionprops('table', BW1,'Area','Centroid')
  댓글 수: 4
mohd akmal masud
mohd akmal masud 2021년 8월 3일
the problem is, i dont know how to extract the total counts in binarize volume . because the binarize volume only have 0 and 1 value on each pixel. while the gray image have 0 till 25000 counts on my pixel,
mohd akmal masud
mohd akmal masud 2021년 8월 6일
this is what i mean the origional my gray image.
as you can see in this picture, there is counts in every pixel such as in picture, 2984.
So, I want to know the total counts in whole volume that i binarize.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2021년 8월 2일
total_counts = sum(T1.Area)
mean_count = mean(T1.Area)
max_count = max(T1.Area)
  댓글 수: 1
mohd akmal masud
mohd akmal masud 2021년 8월 3일
>> total_counts = sum(T1.Area)
total_counts =
270
>> mean_count = mean(T1.Area)
mean_count =
270
>> max_count = max(T1.Area)
max_count =
270
all the answer is sum of the voxel. not counts inside the voxel
what i need is max count on that volume, let example the max count is 3210
then the total count is 11297
the sum voxel is 270
then the mean count is 11297 divided by 270

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by