ants.ops.image_type_cast

image_type_cast(image_list, pixeltype=None)[source]

Cast a list of images to the highest pixeltype present in the list or all to a specified type

ANTsR function: antsImageTypeCast

Parameters:
  • image_list (list/tuple) – images to cast

  • pixeltype (string (optional)) – pixeltype to cast to. If None, images will be cast to the highest precision pixeltype found in image_list

Returns:

given images casted to new type

Return type:

list of ANTsImages