users
users > RE: Transform a set of coordinates (not image) with registration output
Dec 29, 2017 06:12 PM | Torsten Rohlfing
RE: Transform a set of coordinates (not image) with registration output
Hi Dan -
I think the "streamxform" tool should do exactly what you want. The command line takes a single or multiple transform files, analogous to the "reformatx" tool.
It will then read x,y,z coordinates from standard inputs, one point per line, and write transformed coordinates to standard output.
Note, however, that the direction of the transform appears reversed relative to "reformatx", that is, the input coordinates are expected to be in the space of the reference image, and the transformed points will be in the coordinates of the moving image. Thus, while reformatx will produce a resliced moving image in the space of the reference, streamxform will produce a transformed reference image geometry in the space of the moving image.
Hope this makes sense.
Best,
Torsten
I think the "streamxform" tool should do exactly what you want. The command line takes a single or multiple transform files, analogous to the "reformatx" tool.
It will then read x,y,z coordinates from standard inputs, one point per line, and write transformed coordinates to standard output.
Note, however, that the direction of the transform appears reversed relative to "reformatx", that is, the input coordinates are expected to be in the space of the reference image, and the transformed points will be in the coordinates of the moving image. Thus, while reformatx will produce a resliced moving image in the space of the reference, streamxform will produce a transformed reference image geometry in the space of the moving image.
Hope this makes sense.
Best,
Torsten
Threaded View
Title | Author | Date |
---|---|---|
Dan Xie | Dec 19, 2017 | |
Torsten Rohlfing | Dec 29, 2017 | |
Dan Xie | Jan 3, 2018 | |
Torsten Rohlfing | Jan 6, 2018 | |