Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for loading SurfaceSegmentation DICOMs #18

Open
razorx89 opened this issue May 20, 2020 · 2 comments
Open

Add support for loading SurfaceSegmentation DICOMs #18

razorx89 opened this issue May 20, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@razorx89
Copy link
Owner

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 a SegmentationStorage DICOM. All relevant information about the segments should be compatible betweeen SegmentationStorage and SurfaceSegmentationStorage, however, information about PixelSpacing or SliceThickness are missing in the SurfaceSegmentationStorage DICOM. Thus it requires loading the referenced image in order to a) get the voxelization parameters and b) correctly reference the SOPInstanceUID in each encoded frame.

@fedorov
Copy link

fedorov commented Jun 2, 2020

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

@razorx89
Copy link
Owner Author

razorx89 commented Jun 2, 2020

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 DICOM
  • SegmentationStorage DICOM -> SurfaceSegmentationStorage DICOM
  • SurfaceSegmentationStorage DICOM -> Mesh File(s) + Template
  • Mesh File(s) + Template -> SurfaceSegmentationStorage DICOM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants