Ejemplo n.º 1
0
 def set_reference_image(self, reference_image):
     """Set reference image."""
     if not isinstance(reference_image, SIRF.ImageData):
         raise AssertionError()
     self.reference_image = reference_image
     parms.set_parameter(self.handle, self.name, 'reference_image',
                         reference_image.handle)
Ejemplo n.º 2
0
 def set_floating_image(self, floating_image):
     """Set floating image. This is the image that would be the floating if you were doing a forward transformation."""
     if not isinstance(floating_image, SIRF.ImageData):
         raise AssertionError()
     self.floating_image = floating_image
     parms.set_parameter(self.handle, self.name, 'floating_image', floating_image.handle)
Ejemplo n.º 3
0
 def set_reference_image(self, reference_image):
     """Set reference image. This is the image that would be the reference if you were doing a forward transformation."""
     if not isinstance(reference_image, SIRF.ImageData):
         raise AssertionError()
     self.reference_image = reference_image
     parms.set_parameter(self.handle, self.name, 'reference_image', reference_image.handle)
Ejemplo n.º 4
0
 def set_initial_affine_transformation(self, src):
     """Set initial affine transformation."""
     if not isinstance(src, AffineTransformation):
         raise AssertionError()
     parms.set_parameter(self.handle, self.name, 'initial_affine_transformation', src.handle)
Ejemplo n.º 5
0
 def set_floating_mask(self, floating_mask):
     """Sets the floating mask."""
     if not isinstance(floating_mask, SIRF.ImageData):
         raise AssertionError()
     parms.set_parameter(self.handle, 'Registration', 'floating_mask', floating_mask.handle)
Ejemplo n.º 6
0
 def set_reference_mask(self, reference_mask):
     """Sets the reference mask."""
     if not isinstance(reference_mask, SIRF.ImageData):
         raise AssertionError()
     parms.set_parameter(self.handle, 'Registration', 'reference_mask', reference_mask.handle)
Ejemplo n.º 7
0
 def set_floating_image(self, floating_image):
     """Sets the floating image."""
     if not isinstance(floating_image, SIRF.ImageData):
         raise AssertionError()
     parms.set_parameter(self.handle, 'Registration', 'floating_image', floating_image.handle)