# Rotation not account with brainfit

**URL:** https://discourse.slicer.org/t/rotation-not-account-with-brainfit/2572
**Category:** Support
**Tags:** registration
**Created:** [April 12, 2018, 4:50pm UTC](https://discourse.slicer.org/t/rotation-not-account-with-brainfit/2572 "2018-04-12T16:50:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Cyril](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Cyril](https://discourse.slicer.org/u/Cyril)
#### Post date: [April 12, 2018, 4:50pm UTC](https://discourse.slicer.org/t/rotation-not-account-with-brainfit/2572/1 "2018-04-12T16:50:46Z")

</div>

Hello Slicer Community,  
We have created CT and MRI numerical phantom to test the accuracy of registration software. With very simple form like an ellispsoide and just two value 0 for the background and 700 for the ellipsoide. If we translate them Brainfit succeed to register them with a very good accuracy (less then one voxel) but if there is rotation he do not apply any rotation. We try to increase the number of point or use mask but it didn’t solve the problem. You can access the image with this link.  
[https://drive.google.com/drive/folders/1WSGeMJ8vlPdEiVRLPBNIiH7ChLy48hPS?usp=sharing](https://drive.google.com/drive/folders/1WSGeMJ8vlPdEiVRLPBNIiH7ChLy48hPS?usp=sharing)!  
Do you have any clues?  
Thank you,  
Cyril Jaudet, PhD  
Centre françois Baclesse,  
Caen, France

 ![registration_rotation_problem](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/9/296d3786c794f7359ba138bcc61a139e4bc039b7.png)

---

<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: [April 12, 2018, 7:31pm UTC](https://discourse.slicer.org/t/rotation-not-account-with-brainfit/2572/2 "2018-04-12T19:31:15Z")

</div>

In general, you need to have a reasonably close initial alignment. In cases like this, automatic alignment methods may work (try all options available in “Initialize Transform Mode”). You could probably also increase the capture range of the registration by tuning optimization parameters (steps sizes, relaxation factor, etc). Finally, you can also try [SlicerElastix](https://github.com/lassoan/SlicerElastix/) instead of BRAINS.
