Hi Luis,<div><br></div><div>I walk a big circle and then back to the start point, to do a transformation that does translation is certain area and bspline deformation in other area. You suggest there is better way to do this, what is your suggestion? My input would be a bspline transformation coefficient parameters, and a image that the transformation will be applied on, and a mask on rigid area.<br>
<br></div><div>1) If you want to implement a Transform that behaves as<br> a Translation (or Rigid) transform in some regions and<br> as Deformable in others, there are better ways of<br> implementing such class, than fiddling with the parameters<br>
of the BSplineDeformable transfrom.<br><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On 10 May 2010 07:50, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Xi,<br>
<br>
<br>
1) If you want to implement a Transform that behaves as<br>
a Translation (or Rigid) transform in some regions and<br>
as Deformable in others, there are better ways of<br>
implementing such class, than fiddling with the parameters<br>
of the BSplineDeformable transfrom.<br>
<br>
2) But, just to answer your question. The parameter array<br>
of the BSpline transform has the components of the<br>
deformation vectors at every node of the BSpline grid.<br>
<br>
Given a BSpline grid with N nodes in 3D, you will have<br>
<br>
3 x N parameters<br>
<br>
and they are arranged as:<br>
<br>
X1,X2,X3....... Xn, Y1,Y2,Y3.....YN,...Z1, Z2, Z3,... ZN<br>
<br>
<br>
3) You can change those parameters manually.<br>
Simply have to figure out which BSpline nodes<br>
are on top of the regions for which you want to<br>
allow only Translations, and change those<br>
accordingly.<br>
<br>
<br>
<br>
<br>
Regards,<br>
<br>
<br>
Luis<br>
<br>
<br>
<br>
---------------------------------------------<br>
<div><div></div><div class="h5">On Wed, May 5, 2010 at 6:58 AM, Xi Liang <<a href="mailto:liangxi1986317@hotmail.com">liangxi1986317@hotmail.com</a>> wrote:<br>
> Dear all,<br>
> I want to change the some control point parameters got by running<br>
> registration by using itkBSplineDeformableTransform.h. The reason is to<br>
> manually modify a set of control points such that only translation is<br>
> applied on the corresponding regions. The question I would like to ask is<br>
> whether this should be done manually, or we have a filter to change those<br>
> parameters?<br>
> If I have to do this manually, I will have to understand of the format of<br>
> parameters. I understand the number of parameters get<br>
> from itkBSplineDeformableTransform is ImageDimension *<br>
> (numberOfGridNodesInOneDimension + BsplineOrder). Which value is for<br>
> lower/upper borders, and which are for nodes? I think I will only need to<br>
> modify the node values to enforce the translation transformations.<br>
> This method is introduced by Tanner in Volume and Shape Preservation of<br>
> Enhancing Lesions when applying nonrigid registration to a time series of<br>
> contrast enhancing MR breast Images. It couples the control points of a<br>
> bspline deformation to enforce rigidity on certain structures.<br>
> Kind regards,<br>
> Xi<br>
><br>
><br>
</div></div>> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
<br>
</blockquote></div><br></div>