[Insight-users] about warp bspline deform transform

Luis Ibanez luis.ibanez at kitware.com
Sat Feb 7 12:42:20 EST 2009


Hi Han,

I'm not quite sure what your question is.

It sounds like you want to intentionally deform an image using
a BSpline transform.

If so, yes, you can simply use the same parameters of the input
image (origin, spacing, orientation...), and use a BSpline
transform.

This is actually already packaged and ready to use in the
two examples:


      Insight/Examples/Registration/
                  BSplineWarping1.cxx
                  BSplineWarping2.cxx


The first one is 2D and the second one is 3D.

We do this in order to generate synthetic inputs for our
subsequent deformable registration tests.

You will find input files are in Insight/Examples/Data

just as described in the CMakeList.txt file:

BSplineWarping1Test
${ITK_SOURCE_DIR}/Examples/Data/BSplineDisplacements1.txt 
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySliceBorder20.png
${ITK_SOURCE_DIR}/Examples/Data/BrainProtonDensitySliceBorder20.png
${TEMP}/BSplineWarping1Test.png
${TEMP}/BSplineWarping1TestDeformationField.mhd


Please let us know if you run into any problem when using these
examples.


    Regards,


       Luis



-----------------
Han D. F wrote:
>  hello every one,
> 
> I have some questions and understand about bspline transform.
> 
> When I register two volumes using bspline registration method, I will 
> get  bspline pararmeters and deformed fields.
>   The transform will map the points in fix image to moving images.
> Most example will transform the moving images using the bspline 
> parameters to the fix image using resample filter.
> The image size, origin, space ... will be same with the fixed image. In 
> put will involved fixed image, moving image, transformparameter....
> 
> 
> Here I want to tansform the fixed image  using the bspline parameters 
> (or the motion fields )to get a new image. (In order to measure the new 
> image after motion)
> The image size, origin, space ... will also be same with the fixed image.
> So what I should do? I hope the input just involves: fixed image, 
> bspline parameter. 
> Output : the new image after motion.
> 
> 
>  
> 
> 
> ------------------------------------------------------------------------
> ÍøÒ×ÓÊÏ䣬ÖйúµÚÒ»´óµç×ÓÓʼþ·þÎñÉÌ <http://www.yeah.net>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list