[ITK] [ITK-users] set center for affinetransform
Swetha Sharma
swetha.bsharma at gmail.com
Mon Feb 13 12:17:18 EST 2017
Thanks.
On Mon, 13 Feb 2017, 20:13 Dženan Zukić, <dzenanz at gmail.com> wrote:
> 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¢er).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/community/attachments/20170213/b799d6fb/attachment.html>
-------------- next part --------------
_____________________________________
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
More information about the Community
mailing list