lama/utilities/prep_for_man_valid.py
def resample(image, transform):
    """
  This function resamples (updates) an image using a specified transform
  :param image: The sitk image we are trying to transform
  :param transform: An sitk transform (ex. resizing, rotation, etc.
  :return: The transformed sitk image
  """
    reference_image = image
    interpolator = sitk.sitkBSpline
    default_value = -1
    return sitk.Resample(image, reference_image, transform,
                         interpolator, default_value)

  This function resamples (updates) an image using a specified transform
  :param image: The sitk image we are trying to transform
  :param transform: An sitk transform (ex. resizing, rotation, etc.
  :return: The transformed sitk image
  
This function resamples (updates) an image using a specified transform
This function resamples ( updates ) an image using a specified transform
def resample(image, transform):
    reference_image = image
    interpolator = sitk.sitkBSpline
    default_value = -1
    return sitk.Resample(image, reference_image, transform,
                         interpolator, default_value)
def resample ( image , transform ) : reference_image = image interpolator = sitk . sitkBSpline default_value = - 1 return sitk . Resample ( image , reference_image , transform , interpolator , default_value )
This function resamples (updates) an image using a specified transform
This function resamples ( updates ) an image using a specified transform
"""
  This function resamples (updates) an image using a specified transform
  :param image: The sitk image we are trying to transform
  :param transform: An sitk transform (ex. resizing, rotation, etc.
  :return: The transformed sitk image
  """
The transformed sitk image
The transformed sitk image
image
The sitk image we are trying to transform
The sitk image we are trying to transform
transform
An sitk transform (ex. resizing, rotation, etc.
An sitk transform ( ex . resizing rotation etc .