Hi,
I have a large ~10GB .h5 transform that I created within Slicer (affine+non-linear displacement field) by registering two volumes. I also have a spreadsheet that lists the XYZ coordinates of up to 100,000 points. Is there a simple way in slicer to apply my transform, to warp and create a new spreadsheet of points, and visualize this. My goals is to stay in slicer so as not to get confused by different origin definitions and keep the gui visualizations.
On a related topic, is there a preferred way to graphically display this many points. The typical point list method seems like it’s ideal for no more than 100 or so.
I don’t know how you plan to visualize 100K points but one way to do this is to create 3D point cloud where each your points is a vertex and then apply and harden your transform, and then extract the new coordinates of vertices.
This sounds on the right track. Thanks. I don’t have much experience in this realm, so if you can point to how to draw them and warp them it’d be appreciated. Would this be using some of Model tools? This is one part of slicer I haven’t dabbled in much.
Just give this prompt to any LLM (chatGPT, claude or copilot)
“I have 100K points that I would like to convert to a point cloud such coordinate each of point is a vertex and write the output in PLY format. I will apply a non-linear transformation to this model in 3D slicer and need to extract the coordinates of each vertex after the transform is applied. Write python script that I can execute in 3D Slicer”
or something along those lines. That’s nowadays the fastest approach to get what you want to do.
Otherwise you can browse throught the script repository for example
Yes, starting small is good. I can also visualize the points against a volume make sure the new points are in the correct location.
I was exploring the LLM path in parallel. It’s still good to get grounded by wet-brains occasionally too… but at the current rate, in a couple of months that might not be necessary.