I am trying to use ShapeWorks for my thesis purpose, but I can’t proceed with it basically, I tried the ellipsoid dataset to run codes on Jupiter notebooks. But when I was trying to use my dataset, which is CT scan images in Dicom format, I could not convert it to vtk format. I am attaching a screenshot here.
Also, my primary aim is to generate mesh from dicoms. Would anyone help me by showing the right direction to do that? Some tutorials or guidelines, maybe?
Are your Dicom images original CT scans or segmented anatomy? ShapeWorks needs the geometry of the object of interest you would like to model and analyze. It can not work directly from image scans.
Could you try to convert dicoms to single-file formats such as nrrd or mha? We haven’t tested the shapeworks read-image command with dicoms yet but it might worth a try at your end. You can use the shapeworks read-image and write-image commands to convert between image formats. Another option is to use ITKSnap (free software) to export dicoms to nrrds.
Meanwhile, can you share a sample image with us? @amorris could help with troubleshooting this on our side.
The shapeworks read-image command can read DICOM images, just pass the name of the folder as the filename. You can convert directly to a mesh with a command such as:
It is not about the file format, dicom vs nrrd. Shape modeling with ShapeWorks (or any other shape modeling tool) starts with the segmentation of anatomy of interest. Segmentations can either be binary volumes or surface meshes and ShapeWorks supports both. See below for illustration.