Flip
The Flip tool mirrors volume and mask data along a specified axis. Flipping is useful for correcting orientation issues or creating mirrored versions of datasets.
Flip vs Swap Axes
Flip and Swap Axes are related, but they do different things:
- Flip mirrors the data along X, Y, or Z.
- Swap Axes changes which physical direction is treated as X, Y, or Z.
- Use Flip when the axis direction is inverted.
- Use Swap Axes when two axes are in the wrong order.
In short: Flip creates a mirrored result while keeping the same axis order, whereas Swap Axes reorders the axes themselves.
Accessing the Tool
- Navigate to the Image tab in the ribbon.
- Click Flip in the Transform section.
Parameters
Flip Axis
Select the axis along which to flip the data:
| Axis | Effect |
|---|---|
| X | Mirrors left-to-right (sagittal flip) |
| Y | Mirrors front-to-back (coronal flip) |
| Z | Mirrors top-to-bottom (axial flip) |
Flip Reference
Choose the reference point for the flip operation:
| Option | Description |
|---|---|
| About origin | Flip using the coordinate system origin (0, 0, 0) as the mirror plane |
| About center | Flip using the object's geometric center as the mirror plane |
Visual Effect
Flipping creates a mirror image:
- X-axis flip: Left becomes right, right becomes left
- Y-axis flip: Anterior becomes posterior, posterior becomes anterior
- Z-axis flip: Superior becomes inferior, inferior becomes superior
Workflow
- Open the Flip tool from the Image tab.
- Select the axis to flip along (X, Y, or Z).
- Choose the flip reference (About origin or About center).
- Click Apply to flip the data.
Use Cases
Correcting Import Orientation
Some data sources may have inverted axes:
- Identify which axis is inverted by comparing to known anatomy.
- Apply the appropriate flip to correct orientation.
- Verify the result in orthogonal slice views.
Creating Mirrored Datasets
For bilateral symmetry analysis:
- Flip a left-side dataset to create a right-side version.
- Compare or overlay with actual right-side data.
- Useful for symmetry studies and contralateral comparison.
Matching Coordinate Conventions
Different software may use different coordinate conventions:
- Right-handed vs. left-handed coordinate systems
- Different axis definitions (RAS, LPS, etc.)
- Flip as needed to match target conventions
If the issue is an exchanged axis order rather than an inverted direction, use Swap Axes instead.
Affected Objects
Flipping affects:
- All volume objects
- All mask objects
Both are flipped together to maintain spatial correspondence.
Flipping may cause DICOM orientation metadata to become incorrect. Verify patient orientation labels after flipping medical datasets.
Medical Imaging Considerations
In medical imaging, incorrect left-right orientation can have serious consequences. Always verify anatomical landmarks after flipping to ensure correct patient orientation.
Standard medical imaging conventions:
- R = Patient's Right
- L = Patient's Left
- A = Anterior (front)
- P = Posterior (back)
- S = Superior (head)
- I = Inferior (feet)
Scripting
This operation is available via the Python scripting API using flip().
import ScriptingApi as api
app = api.Application()
volume_operations = app.get_volume_operations()
# Flip along X axis about the origin
volume_operations.flip(
["Volume1"],
api.FlipAxis.X, # axis: api.FlipAxis.X, api.FlipAxis.Y, or api.FlipAxis.Z
True # about_origin: True=origin, False=center
)
# Flip along Z axis about the center
volume_operations.flip(["Volume1"], api.FlipAxis.Z, False)
See the VolumeOperations API Reference for details.
See also: Swap Axes