[Insight-users] ComputOffset in the class CenteredAffineTransform
Luis Ibanez
luis.ibanez at kitware.com
Thu Jul 5 15:10:23 EDT 2007
Hi Shuzai
1) What version of ITK are you using ?
2) You shouldn't need to call ComputeOffset()
in a modern version of ITK.
3) You shouldn't use the CenteredAffineTransform()
in a modern version of ITK (e.g. ITK > 3.0)
since now the standard itk::AffineTransform
also incorporates a SetCenter() method.
Regards,
Luis
---------------------
Shuzai Fan wrote:
> Dear All,
>
> We have to use ComputeOffset() before actually using the
> CenteredAffineTransform. However, the visual.Net 2003 keeps telling me
> the following compiling error:
>
> 'itk::MatrixOffsetTransformBase<TScalarType,NInputDimensions,NOutputDimensions>::ComputeOffset'
> : cannot access protected member declared in class
> 'itk::MatrixOffsetTransformBase<TScalarType,NInputDimensions,NOutputDimensions>'
>
> with
> [
> TScalarType=double,
> NInputDimensions=3,
> NOutputDimensions=3
> ]
> and
> [
> TScalarType=double,
> NInputDimensions=3,
> NOutputDimensions=3
> ]
>
>
> The code is something like:
>
> typedef itk::CenteredAffineTransform< double, 3 > TransformType;
> TransformType::Pointer transform = TransformType::New();
> ...
> transform->Rotate3D( axis, angle, false );
> transform->ComputeOffset();
>
>
>
> Any help would be appreciated.
>
> Thank you very much,
>
> Shuzai
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list