Hi VMTK users,
I've created a surface model from a DICOM data set using vmtklevelsetsegmentation and vmtkmarchingcubes. When I open both the image set and the model within other programs, such as Paraview, the model is not oriented correctly. It appears to be rotated and translated with respect to the DICOM data set (see attached image). However, if I use the vmtkrenderer within VMTK to overlay the model over the dataset, the model is in the correct spatial location and orientation.
I do not use vmtkvoiselector to define a region of interest. I remember this creating an issue in the past where the spatial location of the model would be different than the original image set. When the voi selector was used to "crop" an image set, the origin of the data would shift. This appears to be a similar issue, but am not for sure. I don't understanding why vmtkmarchingcubes would alter the origin of the model.
Does the coordinate system change when a model is created? How can I ensure that the model will be spatially aligned?
I will use the surface model (saved as .stl) to create a geometric mask to better visualize and process velocity field information obtained using a 4D Flow MRI sequence. Without the surface model aligned to the data set, the mask would be useless.
Any help would be much appreciated.
Thanks,
Ben Dickerhoff