Open razorx89 opened 4 years ago
I think it would be great if there was a converter to go back and forth between DICOM Surface segmentation and some ITK-supported surface mesh format (e.g., STL).
Interesting. That is actually really easy, since trimesh supports it out of the box. Instead of performing the voxelization you can save the image to one of the supported mesh formats (STL is supported).
Okay, so first I need to design reader and writer interfaces. Then I can go for converter scripts:
SurfaceSegmentationStorage
DICOM -> SegmentationStorage
DICOMSegmentationStorage
DICOM -> SurfaceSegmentationStorage
DICOMSurfaceSegmentationStorage
DICOM -> Mesh File(s) + TemplateSurfaceSegmentationStorage
DICOM
SurfaceSegmentationStorage
is a special type of segmentation where the segments are represented by polygonal meshes instead of voxel-based annotation.https://dicom.innolitics.com/ciods/surface-segmentation
A conversion script could read a
SurfaceSegmentationStorage
DICOM and write aSegmentationStorage
DICOM. All relevant information about the segments should be compatible betweeenSegmentationStorage
andSurfaceSegmentationStorage
, however, information aboutPixelSpacing
orSliceThickness
are missing in theSurfaceSegmentationStorage
DICOM. Thus it requires loading the referenced image in order to a) get the voxelization parameters and b) correctly reference theSOPInstanceUID
in each encoded frame.