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


<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=081103619-09082006><FONT face=Arial color=#0000ff 
size=2>Minjie,</FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT color=#0000ff 
size=2>You can achieve this by using </FONT></FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT color=#0000ff 
size=2></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT color=#0000ff 
size=2>&nbsp; itk::LBFGSBOptimizer, </FONT></FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT color=#0000ff 
size=2></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT color=#0000ff 
size=2>which allows you to set bounds for the&nbsp;transformation parameters. 
The code may look&nbsp;like</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT color=#0000ff 
size=2></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial color=#0000ff size=2>&nbsp; 
typedef itk::LBFGSBOptimizer OptimizerType;</FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial color=#0000ff size=2>&nbsp; 
OptimizerType::Pointer optimizer = optimizer::New();</FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT><FONT color=#0000ff 
size=2>&nbsp; OptimizerType::BoundSelectionType boundSelect( 
transform-&gt;GetNumberOfParameters() );<BR>&nbsp; OptimizerType::BoundValueType 
upperBound( transform-&gt;GetNumberOfParameters() );<BR>&nbsp; 
OptimizerType::BoundValueType lowerBound( transform-&gt;GetNumberOfParameters() 
);<BR><BR>&nbsp; boundSelect.Fill( 2 );&nbsp; // for each parameter, you can 
choose to use lower bound, upper bound, or 
both.</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT><FONT color=#0000ff 
size=2></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT><FONT color=#0000ff 
size=2>&nbsp; // set values for&nbsp;&nbsp;upperBound and lowerBound&nbsp; 
here<BR><BR>&nbsp; optimizer-&gt;SetBoundSelection( boundSelect );<BR>&nbsp; 
optimizer-&gt;SetUpperBound( upperBound );<BR>&nbsp; 
optimizer-&gt;SetLowerBound( lowerBound );<BR></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT><FONT color=#0000ff 
size=2>Hope this helps.</FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT><FONT color=#0000ff 
size=2></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=081103619-09082006><FONT face=Arial><FONT><FONT color=#0000ff 
size=2>Xiaodong</DIV>
<DIV></FONT></FONT></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  insight-users-bounces+taox=research.ge.com@itk.org 
  [mailto:insight-users-bounces+taox=research.ge.com@itk.org]<B>On Behalf Of 
  </B>Minjie Wu<BR><B>Sent:</B> Wednesday, August 09, 2006 2:49 PM<BR><B>To:</B> 
  insight-users@itk.org<BR><B>Subject:</B> [Insight-users] BSpline Deformable 
  Registration<BR><BR></FONT></DIV><PRE>Hello All,<BR><BR>I am using BSpline Registration for 3D brain image alignment. The warped<BR>results look ok, but I am more interested in a constrained deformable<BR>registration, such as allow the deformation only in one direction (could
<BR><BR>be x, or y, or z-direciton).<BR><BR>I wonder if it is possible to have BSpline deformable registration with<BR>less deformation flexibility, such as allowing deformation in one<BR>direction only.<BR><BR>Or if there is any other deformable transformations in ITK have such
<BR><BR>constrained-deformation property?<BR><BR>Any suggestion is appreciate. Thank you very much for your help.<BR>-Minjie<BR></PRE></BLOCKQUOTE></BODY></HTML>