# Apply BSpline transformation in MATLAB

**URL:** <https://discourse.slicer.org/t/apply-bspline-transformation-in-matlab/10573>\
**Category:** Support\
**Tags:** registration\
**Created:** [March 6, 2020, 2:02am UTC](https://discourse.slicer.org/t/apply-bspline-transformation-in-matlab/10573 "2020-03-06T02:02:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farah](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@Farah](https://discourse.slicer.org/u/Farah)\
**Post date:** [March 6, 2020, 2:02am UTC](https://discourse.slicer.org/t/apply-bspline-transformation-in-matlab/10573/1 "2020-03-06T02:02:11Z")

</div>

Hi,  
I have registered two CT scans using non-rigid registration and got a bspline transform as .h5 file.  
I applied this transform on my segmented geometry using 3Dslicer but I want to apply this transform on point set using MATLAB.  
I have read the the transform components using MATLAB, it gave me two groups each group has 3 data sets: TranformFixedParameters, TranformParameters, and TransformType.  
could you tell me what each data set contain ?  
Many thanks,  
Farah

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 6, 2020, 2:45am UTC](https://discourse.slicer.org/t/apply-bspline-transformation-in-matlab/10573/2 "2020-03-06T02:45:19Z")

</div>

This is an ITK transform, see its documentation [here](https://itk.org/Doxygen/html/classitk_1_1BSplineTransform.html). If you have further questions, then you can ask on the [ITK forum](https://discourse.itk.org/).

Why would you consider using Matlab? Have you tried implementing the features you need in Python instead? FYI, Slicer has a built-in interactive Python environment (press Ctrl-3 to bring up the console), with a number of packages pre-installed and you can install any other package that you might need. See tutorials [here](https://www.slicer.org/wiki/Documentation/Nightly/Training#PerkLab.27s_Slicer_bootcamp_training_materials).
