<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>[Insight-users] itk::VersorTransform does not have SetCenter method as ITK guide says</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText33863 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>My code containing these 
snippets seems to work...However, just now I cannot seem to find the 
VersorRigid3DTransform on the doxygen-website? <A 
href="http://www.itk.org/Doxygen/html/classes.html#letter_V">http://www.itk.org/Doxygen/html/classes.html#letter_V</A></FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>If the class has changed recently then my 
info below will not be helpful! </FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2>The class I used is VersorRigid3DTransform 
as you see from the code, rather than VersorTransform.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>I am not the Developer just another user, 
by the way, but if any more detail of my code will help I can happily supply it, 
it just does a lot of other stuff so may confuse if I put it all 
here.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>&nbsp;</DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>&nbsp;/* definition for the 
transform */<BR>&nbsp; /* versor rigid 3d is best for rotation without 
expansion/contraction */<BR>&nbsp; /* double is the representation of the 
coordinate in space, not hte pixel type! */</FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2><BR>&nbsp; typedef 
itk::VersorRigid3DTransform&lt; space_t &gt; TransformType;<BR>.......more code 
......</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT>&nbsp;</DIV></DIV>
<DIV dir=ltr>&nbsp; /* instantiate the objects for the transform */</DIV>
<DIV dir=ltr>&nbsp; TransformType::Pointer&nbsp; transform = 
TransformType::New();<BR>.......more code....</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp; if (ctrl-&gt;auto_center != 1&nbsp; 
){<BR>&nbsp;&nbsp;&nbsp;&nbsp; for 
(i=0;i&lt;3;i++){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; center[i] = 
(space_t)ctrl-&gt;center[i];<BR>&nbsp;&nbsp;&nbsp;&nbsp; }<BR>&nbsp; }</DIV>
<DIV dir=ltr>&nbsp; transform-&gt;SetCenter(center);</DIV>
<DIV dir=ltr>&nbsp;resample-&gt;SetTransform( transform );<BR><BR>&nbsp;... more 
code ....</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>&nbsp;try{<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
resample-&gt;Update();<BR>&nbsp; }<BR>... more code ....</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Robert</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr><FONT face=Tahoma size=2><B>From:</B> 
insight-users-bounces+r.atwood=imperial.ac.uk@itk.org on behalf of 
rama<BR><B>Sent:</B> Tue 20/09/2005 16:15<BR><B>To:</B> Insight 
Users<BR><B>Subject:</B> [Insight-users] itk::VersorTransform does not have 
SetCenter method as ITK guide says<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>itk::VersorTransform doesn't have the SetCenter(...) method. The 
ITK<BR>software guide on page 425 (pdf-page) says that VersorTransform 
can<BR>perfomr rotations around a user specified center point but it 
doesn't<BR>have that funciton in the class. Neither the ITK HTML docs indicate 
this<BR>function in that class, nor the compiler find that function in that 
class.<BR><BR>What to use if it doesn't have that 
function.<BR><BR>-Rama.<BR><BR>_______________________________________________<BR>Insight-users 
mailing list<BR>Insight-users@itk.org<BR><A 
href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR></FONT></P></DIV>

</BODY>
</HTML>