<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Swetha,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">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:</div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">typedef itk::AffineTransform<double, 3> TransformType;<br></font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">TransformType::CenterType center;</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">transform->SetCenter(center);</font></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Second typedefs point directly:</div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">typedef itk::Point<double, 3> CenterType;</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">CenterType center;</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">transform->SetCenter(center);</font><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 13, 2017 at 7:00 AM, Swetha Sharma <span dir="ltr"><<a href="mailto:swetha.bsharma@gmail.com" target="_blank">swetha.bsharma@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br></div><div> I want the set the center of rotation for the affinetransform .I used the function setCenter function ,the signature is defined as setCenter(itk::<wbr>MatrixOffsetTransformBase<<wbr>double,3U,3U>::InputType&<wbr>center).I tried to set the center in the following way,</div><div><br></div><div>itk::<wbr>MatrixOffsetTransformBase<<wbr>double,3U,3U> centerType;<br></div><div><br></div><div><div><span class="m_-759828550577819497gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>"itk::<wbr>MatrixOffsetTransformBase<<wbr>TParametersValueType, NInputDimensions, NOutputDimensions>::<wbr>MatrixOffsetTransformBase() [with TParametersValueType=double, NInputDimensions=3U, NOutputDimensions=3U]" (declared at line 482 of "D:\itk\InsightToolkit-4.9.1\<wbr>src\Modules\Core\Transform\<wbr>include\<wbr>itkMatrixOffsetTransformBase.<wbr>h") is inaccessible<span class="m_-759828550577819497gmail-Apple-tab-span" style="white-space:pre-wrap"> </span></div></div><div><span class="m_-759828550577819497gmail-Apple-tab-span" style="white-space:pre-wrap"><br></span></div><div><span class="m_-759828550577819497gmail-Apple-tab-span" style="white-space:pre-wrap"><br></span></div><div><span class="m_-759828550577819497gmail-Apple-tab-span">Is it possible to define the center of rotation point for the transform? How do I do it?</span></div><span class="HOEnZb"><font color="#888888"><div><span class="m_-759828550577819497gmail-Apple-tab-span">-swetha</span></div><div><br></div><div><div><br></div></div><div><br></div></font></span></div>
<br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>