Hi! I have been using Slicer for a while but I am still unfamiliar with some issues.
When I export my CT scans as a .vtk file and reimport them into Slicer and compare them with my CT scans, they don’t align. This is a problem because when I use the .vtk files in Bonemat, they don’t align with the mesh file I generate.
I tried matching the images and was successful in orienting them. However, the slicer positioning in each axis was still off despite looking the same. I can keep editing these CT files, but I have dozens and it’s inconvenient to keep doing this. Is there a way to export .vtk files that match orientation in CT scans so I can use them in Bonemat without misalignment?
.vtk format doesn’t preserve the image orientation information. If you really need to use this format for compatibility you should be able to reconstruct a valid geometry manually or ideally use tools that are aware of orientations.
Do you have any recommendation for what tools I should use?
What are you trying to do?
Utilize Bonemat Batch Processing.
I require a .vtk file for the CT scans. But the .vtk file doesn’t align with the CT scans. I need the .vtk file to be axis-aligned to the CT scan, so my object (a bone) can utilize Bonemat that assigns material property to the bone based on the CT scan alignment.
I don’t know if anyone here uses Bonemat (I don’t) but probably it makes assumptions about the image data (identity orientation maybe?) so you can use Slicer to resample your image data until it matches. I see that Bonemat has a restrictive non-commercial license so I’m not interested in learning more about it, but if it’s just assigning scalars to vertices of a mesh you can easily so that with Slicer using either VTK or numpy operations.