# B-spline image registration parameters

**URL:** <https://discourse.slicer.org/t/b-spline-image-registration-parameters/14758>\
**Category:** Support\
**Created:** [November 24, 2020, 4:36pm UTC](https://discourse.slicer.org/t/b-spline-image-registration-parameters/14758 "2020-11-24T16:36:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marianaslicer](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/marianaslicer/32/8555_2.png) [@marianaslicer](https://discourse.slicer.org/u/marianaslicer)\
**Post date:** [November 24, 2020, 4:36pm UTC](https://discourse.slicer.org/t/b-spline-image-registration-parameters/14758/1 "2020-11-24T16:36:07Z")

</div>

Hi everyone,

I’m using the latest nightly version and I want to register two images from a virtual phantom:

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/d/1dcf655daf998df3416840c0f214bc0b85538765.png)

Since I will need the B-spline image registration algorithm to further register patient data, I need to apply this algorithm for this data as well. However, the default parameters do not align the images. I tried to change the parameters in a trial error process without success. Could you give some guidance on the suitable parameters to register these images?

Thank you in advance.

---

<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:** [November 24, 2020, 6:54pm UTC](https://discourse.slicer.org/t/b-spline-image-registration-parameters/14758/2 "2020-11-24T18:54:22Z")

</div>

Intensity-based image registration methods requires the image to have some texture.

If you want to register binary images like this then you can use distance-map-based methods, such as Segment Registration (you need to create segments from those blobs by thresholding).

If you can generate more realistic images (with proper texture and intensity variations) then I would recommend to use SlicerElastix extension, as it usually does not require any parameter tuning.

---

<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:** [November 25, 2020, 8:30pm UTC](https://discourse.slicer.org/t/b-spline-image-registration-parameters/14758/3 "2020-11-25T20:30:18Z")

</div>

A post was split to a new topic: [Export multiple series into same study](https://discourse.slicer.org/t/export-multiple-series-into-same-study/14774)
