align the MRI with a rigid body transformation so that the interhemispheric plane is vertical and the anterior to posterior commissures line (AC-PC) is horizontal ;
resample the volume towards an isotropic resolution, so that the segmentation result depends less on the imaging sequence used.
For now, this step is not included in the Primatologist pipeline because ot was not thoroughly validated. If you want to use ot however, it should be applied just after the Prepare MRI step.
Warning
Its default database behavour is to overwrite the input raw MRI. Thus, be careful when you use it. We advise to first backup the original volume.
Description
This process allows to respond to two issues we have encountered
Brain alignement
In MIRCen, animals are placed into a stereotaxic frame during the MRI acquisition. Thus, the brain is always straight and its orientation reproductible from one experiment to another. However, this is not always the case in other centers. Since Morphologist requires AC, PC and IHP points to be user-selected, it is easy to compute a rigid-body transformation that aligns the brain (Figure 1).
Figure 1. Alignment is performed from the three user-selected points that define the inter-hemispheric plane and the AC-PC line.
The alignement of the brain adds another advantage to the segmentation process, because brain orientation impacts cliques probabilities, especially for small and oriented structures (such as the hippocampus) in low-resolution images. We are thus considering the systematic use of brain alignment before any Primatologist processing.
Resampling
Moreover, clique probabilities depend greatly on the resolution of the image of labels from which statistics were computed. The beta parameter of the Markov random field allows to make a clique matrix work with an image of different resolution. However, our pipeline was only validated, and the beta parameter was optimized, for native images acquired with a quasi-isotropic resolution, which is far from always being the case.
Resampling images in a resolution for which we know clique probabilities to be suitable would allow us to get rid of the beta parameter. Additionnaly, it would allow us to systematically work with isotropic resolutions, even when the native image were not acquired this way.
One issue however is that aligning and resampling modifies the native data and introduces resampling artifacts. Additionnaly, it is necessary to choose wisely the interpolation method. A linear inteprolation insures not to introduce values outside the original dynamic, whereas cubic interpolation can introduce outsiders. On the other side, linear interpolation introduces big resampling artifacts and smoothes greatly the image.
When to use it ?
Until further validation, we only advise to use this step when dealing with highly anisotropic images, or when the resolution is very low.
In any case, always try to process a few test images without resampling. If the result suits you, stick with it. Else, you may try this extra step.
For macaques, recommanded output resolution are 0.6 mm (roughly equivalent to the validated resolution), or 0.3 mm (which we think is similar to a millimetric resolution in humans).
File containing three landmarks manually selected with the Prepare MRI process : Anterior Commissure (AC), Posterior Commissure (PC) and Inter-Hemispheric Point (IHP). This last one can be any point from the inter-hemispheric plane above the AC-PC line.
resolution: Choice ( optional, input )
Output resolution. For Macaque, we advise 0.3 mm
interpolation: Choice ( optional, input )
Interpolation method :
Nearest: a 0-order method that maps exactly values between the output and input images. Neighbouring output voxels risk having the same value.
Linear: First order interpolation. It insures that no value outside the original dynamic is created. However, if the output resolution is higher than the input one, it risks to greatly smooth the data.
Cubic: Third order method that is standardly used for interpolation. It tends however to generate "outlier" points in the regions with high contrast (i.e., high spatial gradient), which can hamper the segmentation.
align_ACPC: Boolean ( optional, input )
If true, landmark points will be used to align the brain so that the inter-hemispheric plane is vertical and the AC-PC line is horizontal.
Commissure points in the new referential. If you are using Primatologist's ontology, this is by default the same as the input APC file. Be careful to backup the original.