# How to apply a 3D B-Spline Transformation in a Point?

**URL:** https://discourse.itk.org/t/how-to-apply-a-3d-b-spline-transformation-in-a-point/2596
**Category:** Algorithms
**Created:** [January 10, 2020, 3:43am UTC](https://discourse.itk.org/t/how-to-apply-a-3d-b-spline-transformation-in-a-point/2596 "2020-01-10T03:43:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Felippe\_Trigueiro\_An](https://discourse.itk.org/user_avatar/discourse.itk.org/felippe_trigueiro_an/32/1015_2.png) [@Felippe\_Trigueiro\_An](https://discourse.itk.org/u/Felippe_Trigueiro_An)
#### Post date: [January 10, 2020, 3:43am UTC](https://discourse.itk.org/t/how-to-apply-a-3d-b-spline-transformation-in-a-point/2596/1 "2020-01-10T03:43:50Z")

</div>

Hi, after a 3D registration process using the B-Spline transformation I got a .tfm file containing the transformation parameters. My problem is: How to apply this transformation in just one point using Python?

Thanks.

---

<div class="post-metadata">

### Author: ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)
#### Post date: [January 10, 2020, 2:15pm UTC](https://discourse.itk.org/t/how-to-apply-a-3d-b-spline-transformation-in-a-point/2596/2 "2020-01-10T14:15:05Z")

</div>

Hello Felippe,

To [transform a point](https://itk.org/Doxygen/html/classitk_1_1Transform.html#a4e2ff88e9abbf728d7320be5df203de0), call

```auto
output_point = transform.TransformPoint(input_point)

```

HTH,  
Matt
