MATLAB: Calculate the volume from slices of image

3dareasegmentationslicesofimagevolume

Best Answer

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.)
Related Question