ewoksndreg.io.data_for_registration.generate_image_stack#

ewoksndreg.io.data_for_registration.generate_image_stack(image, transfo_type, shape=None, nimages=None, plot=0)[source]#

Generate a stack of transformed images based on one image.

Parameters:
  • image (ndarray) – 2D

  • transfo_type (TransformationType) – type of transformation

  • shape (Optional[Tuple[int, int]]) – image shape of the stack

  • nimages (Optional[int]) – number of images in the stack

  • plot (float) – show images

Return type:

Tuple[List[ndarray], List[ndarray], List[ndarray]]

Returns:

images (3D), active transformations (3D), passive transformations (3D)