[Insight-developers] GetInverseTransform - MSVC 6 instantiation bug

Paul Koshevoy koshevoy at sci.utah.edu
Thu Apr 9 18:53:00 EDT 2009


Luis Ibanez wrote:
> Hi Bill, Tom,
>
> I tried the workaround from vnl_matrix_fixed without success.
>
> The work around seem to be indeed addressing the same case of defining
> a base class of transposed NumCols and NumRows.... so it is still likely
> that I didn't applied the workaround properly.
>
>
> In the meantime, I have replaced the return inverse type:
>
>      Transform< T, NOutputDimensions, NInputDimensions >
>
> with
>
>      TransformBase
>
> CVS commit:
> http://public.kitware.com/cgi-bin/viewcvs.cgi/Code/Common/itkTransform.h?root=Insight&r1=1.66&r2=1.67&sortby=date
>
> I must admit that the original type is the correct type to use here,
> so it may still be worth to further investigate the VS60 work around.
>
> In the meantime, the code should work fine with the change above.
>
>   

Luis, your change is only applicable to transforms that have the same 
input/output dimension.  If the dimension varies then the inverse 
transform type is not the same as the forward transform type -- 
Inverse(TransformBase<3, 2>) == TransformBase<2, 3>.

    Pavel



More information about the Insight-developers mailing list