surfa.transform.geometry.cast_image_geometry
surfa.transform.geometry.cast_image_geometry#
- surfa.transform.geometry.cast_image_geometry(obj, allow_none=True, copy=False)#
Cast object to ImageGeometry type.
- Parameters
obj (any) – Object to cast.
allow_none (bool) – Allow for None to be successfully passed and returned by cast.
copy (bool) – Return copy if object is already the correct type.
- Returns
Casted image geometry.
- Return type
ImageGeometry or None