<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> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </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> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2> /* definition for the
transform */<BR> /* versor rigid 3d is best for rotation without
expansion/contraction */<BR> /* 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> typedef
itk::VersorRigid3DTransform< space_t > TransformType;<BR>.......more code
......</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr> /* instantiate the objects for the transform */</DIV>
<DIV dir=ltr> TransformType::Pointer transform =
TransformType::New();<BR>.......more code....</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr> if (ctrl->auto_center != 1
){<BR> for
(i=0;i<3;i++){<BR> center[i] =
(space_t)ctrl->center[i];<BR> }<BR> }</DIV>
<DIV dir=ltr> transform->SetCenter(center);</DIV>
<DIV dir=ltr> resample->SetTransform( transform );<BR><BR> ... more
code ....</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr> try{<BR>
resample->Update();<BR> }<BR>... more code ....</DIV>
<DIV dir=ltr> </DIV>
<DIV dir=ltr>Robert</DIV>
<DIV dir=ltr> </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>