ToCanonical
ToCanonical
Bases: ToOrientation
Reorder the data to be closest to canonical (RAS+) orientation.
This transform reorders the voxels and modifies the affine matrix so that the voxel orientations are nearest to:
- First voxel axis goes from left to Right
- Second voxel axis goes from posterior to Anterior
- Third voxel axis goes from inferior to Superior
See NiBabel docs about image orientation for more information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
**kwargs
|
See |
{}
|
Note
The reorientation is performed using
ToOrientation().
__call__(data)
Transform data and return a result of the same type.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
TypeTransformInput
|
Instance of |
required |
to_hydra_config()
Return a dictionary representation of the transform for Hydra instantiation.