users > bug in streamxform with multiple registration
Showing 1-2 of 2 posts
Display:
Results per page:
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

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...
Attachment: ApplyInPlace.patch
Jul 29, 2014  05:07 PM | Torsten Rohlfing
RE: bug in streamxform with multiple registration
Thanks Greg. I fixed this in SVN yesterday.

TR