Surface Area Calculation

658 views
Skip to first unread message

David Russell

unread,
Oct 4, 2015, 5:47:13 PM10/4/15
to itksnap-users
Does anyone know an easy way to get ITK-SNAP to output the surface area in mm2 of a manually segmented volume?? 

BW

Dave

Paul Yushkevich

unread,
Oct 5, 2015, 6:35:57 AM10/5/15
to itksna...@googlegroups.com
This would not be exact, but a reasonable approximation. Assuming your structure of interest has label 4, do the following in c3d:

c3d my_seg.nii.gz -thresh 4 4 1 0 -voxel-sum -dilate 0 1x1x1 -voxel-sum

This will print the volume of the structure of interest before and after erosion by 1 voxel. Essentially, erosion takes the outer layer of voxels off, which corresponds to surface area. If your voxels are anisotropic, this won't be correct, and you would need to first resample your image (using -int 0 to get nearest neighbor interpolation and -resample-mm) to isotropic resolution.

The other approach is to export your segmentation as a mesh, and look for mesh visualization tools that can report surface area. I am sure some do, but don't know off the top of my head.

--
You received this message because you are subscribed to the Google Groups "itksnap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to itksnap-user...@googlegroups.com.
To post to this group, send email to itksna...@googlegroups.com.
Visit this group at http://groups.google.com/group/itksnap-users.
For more options, visit https://groups.google.com/d/optout.



--
Paul A. Yushkevich, Ph.D.
Associate Professor
Penn Image Computing and Science Laboratory
Department of Radiology
University of Pennsylvania

David Russell

unread,
Oct 5, 2015, 8:15:10 AM10/5/15
to itksnap-users
Thanks I will give it a bash. Interestingly, I tried to use meshmixer. It can import stl meshs and calculate their surface area and volume. When I tried it with ano stl mesh I had extracted from itk it loaded up fine and calculated a Surface area and volume. The volume however was considerably different from ITK snaps calculation. Is there anywhere with a collection of unit volume meshs/segmentation phantoms for testing. Thanks, again for the help.

Paul Yushkevich

unread,
Oct 5, 2015, 9:10:50 AM10/5/15
to itksna...@googlegroups.com
David

The difference may be due to the fact that by default ITK-SNAP applies some smoothing to the segmentations before creating meshes. You can control this behavior under Preferences, 3D Rendering. I would hope that after that, the volumes from the two tools would be consistent.

Paul

On Mon, Oct 5, 2015 at 8:15 AM, David Russell <rgbrg...@googlemail.com> wrote:
Thanks I will give it a bash. Interestingly, I tried to use meshmixer. It can import stl meshs and calculate their surface area and volume. When I tried it with ano stl mesh I had extracted from itk it loaded up fine and calculated a Surface area and volume. The volume however was considerably different from ITK snaps calculation. Is there anywhere with a collection of unit  volume meshs/segmentation phantoms for testing. Thanks, again for the help.
--
You received this message because you are subscribed to the Google Groups "itksnap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to itksnap-user...@googlegroups.com.
To post to this group, send email to itksna...@googlegroups.com.
Visit this group at http://groups.google.com/group/itksnap-users.
For more options, visit https://groups.google.com/d/optout.

Bin Paul

unread,
Oct 2, 2018, 2:46:47 PM10/2/18
to itksnap-users
Hi Paul,

I am evaluating picture of dimple found on the female cheek. I need your help what is the best way to evaluate the dimple size (length, depth or width) using ImageJ or any other tools. If we used pixel, I am wondering how to calculate, how much pixel is equal to one centimeter or cubic centimeter? in other words, how can we convert pixel to centimeter?

Thank you for your help in advance.

Bin

Bin Paul

unread,
Oct 2, 2018, 3:59:18 PM10/2/18
to itksnap-users
Reply all
Reply to author
Forward
0 new messages