ants.utils.consistency

Functions

allclose(image1, image2)

Check if two images have the same array values

image_physical_space_consistency(image1, image2)

Check if two or more ANTsImage objects occupy the same physical space

allclose(image1, image2)[source]

Check if two images have the same array values

image_physical_space_consistency(image1, image2, tolerance=0.01, datatype=False)[source]

Check if two or more ANTsImage objects occupy the same physical space

ANTsR function: antsImagePhysicalSpaceConsistency

Parameters:
  • *images (ANTsImages) – images to compare

  • tolerance (float) – tolerance when checking origin and spacing

  • data_type (bool) – If true, also check that the image data types are the same

Returns:

true if images share same physical space, false otherwise

Return type:

bool