# All about Registration

**URL:** <https://discourse.slicer.org/t/all-about-registration/10039>\
**Category:** Support\
**Created:** [January 30, 2020, 8:01pm UTC](https://discourse.slicer.org/t/all-about-registration/10039 "2020-01-30T20:01:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![banikr](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@banikr](https://discourse.slicer.org/u/banikr)\
**Post date:** [January 30, 2020, 8:01pm UTC](https://discourse.slicer.org/t/all-about-registration/10039/1 "2020-01-30T20:01:16Z")

</div>

Hey, I am embarking a project that involves human brain/head registration. I have 100 patient data and would like to register them without losing the inter-subject variability and shape and size of different subjects(morphometricity).  
What would be the best registration algorithm to use? For example: affine, deformable/non-rigid registration.  
I guess deformable registration will distort different subject head shapes.

Another thing is how to visualize the registration results? Is there a metric or so to compare and monitor the 100 registration process?  
Though it is slicer3D forum but I am also familiar with ITK.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 30, 2020, 9:09pm UTC](https://discourse.slicer.org/t/all-about-registration/10039/2 "2020-01-30T21:09:16Z")

</div>

Hi -

You can certainly use Slicer for this, but when working on batch processing of neuroimages you may be better off with one of the neuro-specific packages like freesurfer, FSL or SPM.

For slicer registration you could start by looking at examples here:

[https://www.slicer.org/wiki/Documentation/4.10/Registration/RegistrationLibrary](https://www.slicer.org/wiki/Documentation/4.10/Registration/RegistrationLibrary)

---

<div class="post-metadata">

**Author:** ![banikr](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@banikr](https://discourse.slicer.org/u/banikr)\
**Post date:** [January 30, 2020, 9:49pm UTC](https://discourse.slicer.org/t/all-about-registration/10039/3 "2020-01-30T21:49:24Z")

</div>

I have used FSL before, how about ITK?  
And I need intersubject size and shape variability to experiment on different heads. I mean anatomical or structural information is top priority to differentiate between subjects(These registered images will also be segmented to create different tissue labels of head)  
Which algorithm should I go for like rigid-nonrigid, affine-bspline or deformable?  
Thanks for the link it looks helpful.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [January 30, 2020, 10:19pm UTC](https://discourse.slicer.org/t/all-about-registration/10039/4 "2020-01-30T22:19:30Z")

</div>

If you are looking for head-shape differences then maybe SlicerMorph or SlicerSALT would have interesting tools for you. Also if you do non-rigid registration then the resulting transformation could be thought of as a way to define the variability of the shapes.

---

<div class="post-metadata">

**Author:** ![banikr](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@banikr](https://discourse.slicer.org/u/banikr)\
**Post date:** [January 31, 2020, 3:00am UTC](https://discourse.slicer.org/t/all-about-registration/10039/5 "2020-01-31T03:00:03Z")

</div>

Interesting thought.  
I need the head shapes intact so was thinking about rigid registration or affine(considering shear and scaling also change the head shapes).

But if I perform non-rigid with respect to either MNI305 or MNI152 or any reference to get the transformation matrix, what non-rigid method you think would be best?

Also to keep in mind that I will segment these registered images to get the different tissue label maps.  
I will prefer running a script for 120 3D images rather than registering one by one.

TIA

---

<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:** [January 31, 2020, 3:45am UTC](https://discourse.slicer.org/t/all-about-registration/10039/6 "2020-01-31T03:45:44Z")

</div>

If you segment the images then you don’t need registration. You can compute displacements and shape statistics based on those segmented structures.

---

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [January 31, 2020, 4:04am UTC](https://discourse.slicer.org/t/all-about-registration/10039/7 "2020-01-31T04:04:21Z")

</div>

> [@lassoan](#):
>
> ents and shape statistics based on those segmented structures.

If you just statistic the shape you can use the segment statistic module or if you try to get more information you could perform the radiomic analysis.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/9/5957017ca298d4b398563e831951008f51d96d58.png)

---

<div class="post-metadata">

**Author:** ![banikr](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@banikr](https://discourse.slicer.org/u/banikr)\
**Post date:** [January 31, 2020, 7:05am UTC](https://discourse.slicer.org/t/all-about-registration/10039/8 "2020-01-31T07:05:34Z")

</div>

Hey, thanks!  
I have never used it before. Could you provide some tutorials or links to learn more about it?  
Looks very helpful.

---

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [January 31, 2020, 8:31am UTC](https://discourse.slicer.org/t/all-about-registration/10039/9 "2020-01-31T08:31:11Z")

</div>

You can search in the forum and you could get what you want.  
For example:  
1、segment the ROI  
2、select which statistic method in ‘segment statistic’ moduel and then apply.  
3、The results and the information should be fould just as:

> [@Segment statistics](https://discourse.slicer.org/t/segment-statistics/7303):
>
> Hi! I have a question regarding the module Segment Statistics. After applying Segement Statistics in 3DSlicer 4.9, 3DSlicer displays two different volumes, volume (1) and (2). Please find the attached table here: [image] What is the difference between these volumes? Thanks!

---

<div class="post-metadata">

**Author:** ![banikr](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@banikr](https://discourse.slicer.org/u/banikr)\
**Post date:** [January 31, 2020, 3:55pm UTC](https://discourse.slicer.org/t/all-about-registration/10039/10 "2020-01-31T15:55:08Z")

</div>

I was thinking about MultiAtlas segmentation for subcortical brain regions like putamen, substantia-nigra and all. Do you think I won’t need registration(at least rigid/affine) for that reason?  
I have used FSL FAST for segmenting peripheral regions such as WM, GM, CSF.

---

<div class="post-metadata">

**Author:** ![banikr](https://avatars.discourse-cdn.com/v4/letter/b/b9bd4f/32.png) [@banikr](https://discourse.slicer.org/u/banikr)\
**Post date:** [January 31, 2020, 4:58pm UTC](https://discourse.slicer.org/t/all-about-registration/10039/11 "2020-01-31T16:58:45Z")

</div>

To assign different electromagnetic properties to different tissues for a simulation I will need segmentation labels.  
Previous work pipeline included Affine Registration and then MultiAtlas segmentation(MAS).  
For MAS, is it mandatory to have registration?  
Moreover the head shape and size also has importance the study I am doing.
