align_image_mask

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

align_image_mask(pair: ImageMaskPair, *, policy: GeometryPolicy = GeometryPolicy.STRICT, tolerance: float = 1e-06) → ImageMaskPair[source]

Validate or explicitly correct image/mask geometry according to policy.

Examples using habit.image.align_image_mask

Load from NIfTI files

Load from NIfTI files