Input files in Scattered Transform module

Hi 3D Slicer experts and all
I have 2 images (CT and MRI), which MRI image is with distortion. I want to calculate the B-Spline Transform, using Scattered Transform module. which one do I insert for “file with initial point positions” of input files panel, (CT or MRI)?
Thanks a lot

HI 3D Slicer experts
Unfortunately, I did not receive any feedback on my question. I think that CT image, which is without distortion, should be inserted for “file with initial point positions”. is this true? can you help me with this question?
Thanks a lot

Scattered transform module converts a set of landmark displacements to a regular bspline grid. No images are used. If you want to register images to compute a transform then you can use “General registration (BRAINS)” module or “General registration (Elastix)” module (provided by SlicerElastix extension).

Hi
I’ve been using the scattered Transform module in Slicer 4.7.0-2017-09-13 to create B- Spline matrix for a while, but recently it seems broken. I have 2 .txt files of more than 20 thousand points and every time I insert them in the Input files section, the process ends up with an error like " the scattered transform module encountered with the serious problem". I want to know is there sth wrong with it? and how can I fix this problem? can you help me?
By the way, I tried this module in some other version of Slicer, but the outcome was the same.
Thanks a lot

Can you provide an example data set that reproduces the issue?

Hi
This is an example of two sets of points in CT and MRI that I expect scattered transform to create BSpline matrix of them.
Thanks a lot

MR and CT points

Please upload the files somewhere and post the link here. Use a file format that Slicer can directly load.

Hi
These are the CT and MR data links that have been uploaded.

https://uupload.ir/filelink/RjrHINoGt5Gg/1u1r_pointsintersectionct.txt
https://uupload.ir/filelink/wx9AHwCeijql/7bsw_pointsintersectionmr.txt
Also, I have another question. Formerly when I used slicer 4.7, the residual number at the end of the process was not the same in different versions of slicer(4.8 or 4.10 for instance). why this happens and which residual number is correct? higher or lower?
Thanks a lot

Hi 3D Slicer experts and all
Unfortunately, I didn’t receive any feedback. Previously, as I mentioned, I use Scattered Transforms module to Creat Bspline matrix in Slicer 4.7 . I have 2 .txt files of mere than 20 thousand points and every time I insert them in the Input files section, the process ends up with an error.
1- can you help me about the reason of this problem?
Also, the residual number at the end of the process is not the same in different versions of slicer.
2- Can you tell me what is the reason of this difference?
Finally, I put the link of my CT and MRI data here again.

https://uupload.ir/filelink/w8SKqrRr4wWd/1u1r_pointsintersectionct.txt
https://uupload.ir/filelink/etcljQ20qsDc/7bsw_pointsintersectionmr.txt

Thanks a lot

I ran the module with default parameters (latest stable, Slicer-4.11.20200930, Windows 10) and got 0.00414063 residual error. The displacement field qualitatively looked good. I haven’t checked how well the field matches the two pointsets, you can do that to confirm that everything works well.

The residual error is typically computed as the mean distance between fixed points and transformed moving points. Smaller value is the better, if it is a magnitude lower than your total system error then you can consider it as negligible.

Since the method performs floating point computations, so small differences are expected depending on compiler versions, runtime libraries, etc., but these differences should not be significant.