[Insight-developers] MatrixOffsetTransformBase
Miller, James V (Research)
millerjv at crd.ge.com
Fri Nov 4 09:13:17 EST 2005
Stephen,
I am putting in code to optimize the ResampleImageFilter for the case of linear transformations. I am but surprised that there is not a LinearTransform class. It looks like MOST of the linear transforms subclass MatrixOffsetTransformBase. The IdentityTransform is one linear transform that does not. I probably need to check the rest of the transforms to see which are not derived from MatrixOffsetTransformBase.
Can I assume that a MatrixOffsetTransformBase is indeed linear? From the template parameters and internal typedefs, I think it pretty much has to be linear (in the parameters). But one could model a quadratic transform with the MatrixOffsetTransformBase as taking 7D "points" (x^2 xy y^2 x y 1) and producing 2D points. This is still linear in the parameters but would defeat the optimizations that I put in the ResampleImageFilter. However, I think a quadratic transform would have to be modelled differently anyway (going 2D-2D verses 7D-2D) for the ResampleImageFilter to work anyway.
An alternative is to add methods like IsLinear() method to Transform that subclasses can override.
Should there be a LinearTransform class?
Jim Miller
_____________________________________
Visualization & Computer Vision
GE Research
Bldg. KW, Room C223
1 Research Circle, Schenectady NY 12309-1027
millerjv at research.ge.com <mailto:millerjv at research.ge.com>
(518) 387-4005, Dial Comm: 8*833-4005
Cell: (518) 505-7065, Fax: (518) 387-6981
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20051104/74f6a62f/attachment.html
More information about the Insight-developers
mailing list