users
users > bug in streamxform with multiple registration
Jul 27, 2014 11:07 PM | Greg Jefferis
bug in streamxform with multiple registration
Hi Torsten,
I'm seeing something strange when passing multiple registrations to the streamxform tool:
echo 365 113 112 | streamxform -- JFRC2_IS2.list
196.857602 135.684389 153.386743
OK!
echo 365 113 112 | streamxform -- JFRC2_IS2.list --inverse JFRC2_IS2.list
365 113 112
round trip OK!
echo 196.857602 135.684389 153.386743 | streamxform -- --inverse JFRC2_IS2.list
365 113 112
inverse OK!
echo 196.857602 135.684389 153.386743 | streamxform -- --inverse JFRC2_IS2.list JFRC2_IS2.list
365 113 112
After some debugging, I traced the problem to this line
https://github.com/jefferis/cmtk/blob/ma...
which returns prematurely if this is not the last transformation in the list. Compare with
https://github.com/jefferis/cmtk/blob/ma...
Patch attached.
Best,
Greg.
I think this is an obvious bug that you can recreate with any old transform, but this one in particular is available here
https://github.com/jefferislab/BridgingR...
I'm seeing something strange when passing multiple registrations to the streamxform tool:
echo 365 113 112 | streamxform -- JFRC2_IS2.list
196.857602 135.684389 153.386743
OK!
echo 365 113 112 | streamxform -- JFRC2_IS2.list --inverse JFRC2_IS2.list
365 113 112
round trip OK!
echo 196.857602 135.684389 153.386743 | streamxform -- --inverse JFRC2_IS2.list
365 113 112
inverse OK!
echo 196.857602 135.684389 153.386743 | streamxform -- --inverse JFRC2_IS2.list JFRC2_IS2.list
365 113 112
Huh? seems to have ignored second
transform
After some debugging, I traced the problem to this line
https://github.com/jefferis/cmtk/blob/ma...
which returns prematurely if this is not the last transformation in the list. Compare with
https://github.com/jefferis/cmtk/blob/ma...
Patch attached.
Best,
Greg.
I think this is an obvious bug that you can recreate with any old transform, but this one in particular is available here
https://github.com/jefferislab/BridgingR...
Threaded View
Title | Author | Date |
---|---|---|
Greg Jefferis | Jul 27, 2014 | |
Torsten Rohlfing | Jul 29, 2014 | |