calculate the volume from slices of image

22 views (last 30 days)

I have segmented 13 images using for loop in the listbox. How can I calculate the volume of the segmented image by adding up the area of each individual segmented image?

Accepted Answer

Walter Roberson
Walter Roberson on 19 Jan 2017
If you stored all of the data into one 3D array, then use nnz() to get the number of cubic pixels. Multiply that by the x resolution times the y resolution times the z resolution to get real-world volumes; the x and y resolution are usually the same but the z is often higher. (I am using resolution in the sense of distance between centers.)
  8 Comments
Walter Roberson
Walter Roberson on 22 Feb 2017
Pixel Spacing; Tag (0028,0030); type 1C
Physical distance in the patient between the center of each pixel, specified by a numeric pair - adjacent row spacing (delimiter) adjacent column spacing in mm. See Section 10.7.1.1 and Section 10.7.1.3. Required if the image has been calibrated. May be present otherwise.
George Papas
George Papas on 23 Feb 2017
Thank you, interesting information. I guess one should really take care of what dicom header can contain for different data.

Sign in to comment.

More Answers (1)

abdey munaf
abdey munaf on 3 Dec 2018
can I know how the distance between pixel center is measured?
  1 Comment
Walter Roberson
Walter Roberson on 3 Dec 2018
DICOM images support multiple image types .
In some of the cases there are physical sensors at fixed distances (that might differ between manufacturers and models ) such as in the case of ccd arrays used for photography . Xray photograph are example .
In other cases there might only be one fixed detector but there might be some process going on that has the effect of selecting a particular 2d area or 3d volume, in which case the distance recorded reflects how finely controlled the selection was . MRI is an example of time based signals converted to spatial by knowing how signals were controlled in continuous space.
In other cases there might have been raw data taken at multiple overlapping angles and what is recorded in the image file might reflect how finely grained the angled measurements were converted to rectangular coordinates . CT is an example of angle to rectangular reconstruction .

Sign in to comment.

Categories

Find more on Biomedical Imaging in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!