[Insight-users] Changes in AffineTransform

Tobias Heimann t.heimann at dkfz-heidelberg.de
Fri Sep 9 14:43:48 EDT 2005


Hi all,

I'd like to point out a change in the behaviour of the AffineTransform 
class from ITK 2.0.1 to 2.2.0 to hopefully save some users from the 
trouble that I went through to spot this...
The Scale() method now scales all coordinates from the set center of the 
transform, *not* from the origin. This should be fixed in the 
documentation, which still claims otherwise.
In practice, this means that a point (1,0) scaled by 2 will end up at 
(2,-1) if the center was set at (0,1) and not at the expected position 
(2,0), where it was mapped to by older ITK versions.

Regards,
Tobias

-- 
Dipl.-Inform. Med. Tobias Heimann
Deutsches Krebsforschungszentrum         (German Cancer Research Center)
Div. Medical and Biological Informatics B010      Tel: (+49) 6221-423548
Im Neuenheimer Feld 280                           Fax: (+49) 6221-422345
D-69120 Heidelberg                              email: T.Heimann at dkfz.de
Germany                       http://www.dkfz.de/mbi/people/tobiash.html



More information about the Insight-users mailing list