validate_geometry

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.

validate_geometry(image: ImageVolume | ndarray | str | Path | Any, mask: MaskVolume | ndarray | str | Path | Any, *, tolerance: float = 1e-06) → GeometryReport[source]

Return an explicit geometry comparison without changing either input.

Examples using habit.image.validate_geometry

Load from NIfTI files

Load from NIfTI files