<p dir="ltr">Thanks.</p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, 13 Feb 2017, 20:13 Dženan Zukić, <<a href="mailto:dzenanz@gmail.com">dzenanz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg"><div class="gmail_default gmail_msg" style="font-family:verdana,sans-serif;font-size:small">Hi Swetha,</div><div class="gmail_default gmail_msg" style="font-family:verdana,sans-serif;font-size:small"><br class="gmail_msg"></div><div class="gmail_default gmail_msg" 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 gmail_msg" style="font-size:small"><font face="monospace, monospace" class="gmail_msg">typedef itk::AffineTransform<double, 3> TransformType;<br class="gmail_msg"></font></div><div class="gmail_default gmail_msg" style="font-size:small"><font face="monospace, monospace" class="gmail_msg">TransformType::CenterType center;</font></div><div class="gmail_default gmail_msg" style="font-size:small"><font face="monospace, monospace" class="gmail_msg">transform->SetCenter(center);</font></div><div class="gmail_default gmail_msg" style="font-family:verdana,sans-serif;font-size:small"><br class="gmail_msg"></div><div class="gmail_default gmail_msg" style="font-family:verdana,sans-serif;font-size:small">Second typedefs point directly:</div><div class="gmail_default gmail_msg" style="font-size:small"><font face="monospace, monospace" class="gmail_msg">typedef itk::Point<double, 3> CenterType;</font></div><div class="gmail_default gmail_msg" style="font-size:small"><font face="monospace, monospace" class="gmail_msg">CenterType center;</font></div><div class="gmail_default gmail_msg" style="font-size:small"><font face="monospace, monospace" class="gmail_msg">transform->SetCenter(center);</font><br class="gmail_msg"></div><div class="gmail_default gmail_msg" style="font-family:verdana,sans-serif;font-size:small"><br class="gmail_msg"></div><div class="gmail_default gmail_msg" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default gmail_msg" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">On Mon, Feb 13, 2017 at 7:00 AM, Swetha Sharma <span dir="ltr" class="gmail_msg"><<a href="mailto:swetha.bsharma@gmail.com" class="gmail_msg" target="_blank">swetha.bsharma@gmail.com</a>></span> wrote:<br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi All,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">  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,</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">itk::MatrixOffsetTransformBase<double,3U,3U> centerType;<br class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg"><span class="m_-3481853023575153103m_-759828550577819497gmail-Apple-tab-span gmail_msg" style="white-space:pre-wrap">     </span>"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<span class="m_-3481853023575153103m_-759828550577819497gmail-Apple-tab-span gmail_msg" style="white-space:pre-wrap">  </span></div></div><div class="gmail_msg"><span class="m_-3481853023575153103m_-759828550577819497gmail-Apple-tab-span gmail_msg" style="white-space:pre-wrap"><br class="gmail_msg"></span></div><div class="gmail_msg"><span class="m_-3481853023575153103m_-759828550577819497gmail-Apple-tab-span gmail_msg" style="white-space:pre-wrap"><br class="gmail_msg"></span></div><div class="gmail_msg"><span class="m_-3481853023575153103m_-759828550577819497gmail-Apple-tab-span gmail_msg">Is it possible to define the center of rotation point for the transform? How do I do it?</span></div><span class="m_-3481853023575153103HOEnZb gmail_msg"><font color="#888888" class="gmail_msg"><div class="gmail_msg"><span class="m_-3481853023575153103m_-759828550577819497gmail-Apple-tab-span gmail_msg">-swetha</span></div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div></div><div class="gmail_msg"><br class="gmail_msg"></div></font></span></div>
<br class="gmail_msg"></blockquote></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_____________________________________<br class="gmail_msg">
Powered by <a href="http://www.kitware.com" rel="noreferrer" class="gmail_msg" target="_blank">www.kitware.com</a><br class="gmail_msg">
<br class="gmail_msg">
Visit other Kitware open-source projects at<br class="gmail_msg">
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" class="gmail_msg" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br class="gmail_msg">
<br class="gmail_msg">
Kitware offers ITK Training Courses, for more information visit:<br class="gmail_msg">
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" class="gmail_msg" target="_blank">http://www.kitware.com/products/protraining.php</a><br class="gmail_msg">
<br class="gmail_msg">
Please keep messages on-topic and check the ITK FAQ at:<br class="gmail_msg">
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" class="gmail_msg" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br class="gmail_msg">
<br class="gmail_msg">
Follow this link to subscribe/unsubscribe:<br class="gmail_msg">
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" class="gmail_msg" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br class="gmail_msg">
<br class="gmail_msg"></blockquote></div><br class="gmail_msg"></div>
</blockquote></div>