[ITK-users] set center for affinetransform

Dženan Zukić dzenanz at gmail.com
Mon Feb 13 09:43:20 EST 2017


Hi Swetha,

of course it is possible. CenterType is just a typedef for point. So you
have two ways. First uses transform type to get center type:
typedef itk::AffineTransform<double, 3> TransformType;
TransformType::CenterType center;
transform->SetCenter(center);

Second typedefs point directly:
typedef itk::Point<double, 3> CenterType;
CenterType center;
transform->SetCenter(center);

Regards,
Dženan

On Mon, Feb 13, 2017 at 7:00 AM, Swetha Sharma <swetha.bsharma at gmail.com>
wrote:

> Hi All,
>
>   I want the set the center of rotation for the affinetransform .I used
> the function setCenter function ,the signature is defined as setCenter(itk::
> MatrixOffsetTransformBase<double,3U,3U>::InputType&center).I tried to set
> the center in the following way,
>
> itk::MatrixOffsetTransformBase<double,3U,3U> centerType;
>
> "itk::MatrixOffsetTransformBase<TParametersValueType, NInputDimensions,
> NOutputDimensions>::MatrixOffsetTransformBase() [with
> TParametersValueType=double, NInputDimensions=3U, NOutputDimensions=3U]"
> (declared at line 482 of "D:\itk\InsightToolkit-4.9.1\
> src\Modules\Core\Transform\include\itkMatrixOffsetTransformBase.h") is
> inaccessible
>
>
> Is it possible to define the center of rotation point for the transform?
> How do I do it?
> -swetha
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170213/4f074716/attachment.html>


More information about the Insight-users mailing list