Dear All,<br><br>We have to use ComputeOffset() before actually using the CenteredAffineTransform. However, the visual.Net 2003 keeps telling me the following compiling error: <br><br>'itk::MatrixOffsetTransformBase<TScalarType,NInputDimensions,NOutputDimensions>::ComputeOffset' : cannot access protected member declared in class 'itk::MatrixOffsetTransformBase<TScalarType,NInputDimensions,NOutputDimensions>'
<br> with<br> [<br> TScalarType=double,<br> NInputDimensions=3,<br> NOutputDimensions=3<br> ]<br> and<br> [<br> TScalarType=double,<br> NInputDimensions=3,
<br> NOutputDimensions=3<br> ]<br><br><br>The code is something like:<br><br> typedef itk::CenteredAffineTransform< double, 3 > TransformType;<br> TransformType::Pointer transform = TransformType::New();
<br>...<br> transform->Rotate3D( axis, angle, false ); <br> transform->ComputeOffset();<br><br><br><br>Any help would be appreciated.<br><br>Thank you very much,<br><br>Shuzai<br>