@@ -467,9 +467,38 @@ def view(data=None, **kwargs):
467467
468468 return viewer
469469
470-
471470def compare_images (* args , ** kwargs ):
472- """Fuse 2 images with a checkerboard filter"""
471+ """Fuse 2 images with a checkerboard filter or as a 2 component image.
472+
473+ The moving image is re-sampled to the fixed image space.
474+
475+ Parameters
476+ ----------
477+ fixed_image: array_like, itk.Image, or vtk.vtkImageData
478+ Static image the moving image is re-sampled to.
479+
480+ moving_image: array_like, itk.Image, or vtk.vtkImageData
481+ Image is re-sampled to the fixed_image.
482+
483+ method: string, default: 'checkerboard', possible values: 'cyan-magenta', 'blend', 'checkerboard'
484+ checkerboard picks pixels from the fixed and moving image to create a
485+ checkerboard pattern.
486+ cyan-magenta method puts the fixed image on component 0, moving image on component 1
487+ and changes the color map for fixed image to cyan, moving image to magenta.
488+ blend method puts the fixed image on component 0, moving image on component 1
489+ and changes the color maps for both to grayscale.
490+
491+ pattern: Tuple[int, int, int], default: [4, 4, 4]
492+ An array with the number of checkerboard boxes for each dimension.
493+
494+ swap_image_order: bool, default: false
495+ Reverses which image is sampled for each checkerboard box.
496+
497+ imageMix: float, default: 0.5
498+ Changes the percent contribution the fixed vs moving image makes to the
499+ render by modifying the opacity transfer function. Value of 1 means max opacity for
500+ moving image, 0 for fixed image. Only active when method is cyan-magenta or blend.
501+ """
473502 viewer = view ()
474503 viewer .compare_images (* args , ** kwargs )
475504 return viewer
0 commit comments