# Bspline transform multiresolution type mismatch

**URL:** <https://discourse.slicer.org/t/bspline-transform-multiresolution-type-mismatch/14185>\
**Category:** Support\
**Tags:** registration, bspline\
**Created:** [October 21, 2020, 1:50pm UTC](https://discourse.slicer.org/t/bspline-transform-multiresolution-type-mismatch/14185 "2020-10-21T13:50:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MachadoL](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/machadol/32/3372_2.png) [@MachadoL](https://discourse.slicer.org/u/MachadoL)\
**Post date:** [October 21, 2020, 1:50pm UTC](https://discourse.slicer.org/t/bspline-transform-multiresolution-type-mismatch/14185/1 "2020-10-21T13:50:55Z")

</div>

Hello, everyone.

I am carrying a multistage and multi-resolution deformable registration pipeline.

I start with 3D rigid transform. The transform result I plug into the `CompositTransform` object.  
In the next stage I use the `BSpline` 3D transform. Instead of initiating the Bspline with some transform initializer I use the `SetInitialTransform(compositeTransform)`.

The problem is: When I start to configure the multi-resolution parameters of BSpline stage, specially the  
`TransformParametersAdaptors`, I face a problem when setting the adaptor:  
`bsplineAdaptor->SetTransform(compositeTransform)`.

I use the `CompositeTransform`, which is the initial transform of this stage, and it **displays and error**. A mismatch transform type error. It was expecting a `BSplineTransform` and received a `CompositTransform`.

How can I solve it? I know that if I remove the whole multi-resolution deal for BSpline This could be solved. Although, I would like to maintain the multi-resolution for BSpline stage.

Any suggestions are welcomed.
