images_alignment.application.app module

Tkinter-application for the images alignment

class images_alignment.application.app.App(root, size='1450x860', force_terminal_exit=True, fnames_fixed=None, fnames_moving=None, rois=None, thresholds=None, bin_inversions=None)

Bases: object

Application for the images alignment

Parameters:
  • root (Tkinter.Tk object) – Root window

  • size (str, optional) – Size of the root window

  • force_terminal_exit (bool, optional) – Key to force terminal session to exit after ‘root’ destroying

  • fnames_fixed, fnames_moving (iterables of str, optional) – Images pathnames related to fixed and moving images resp. to handle

  • rois (list of 2 iterables, optional) –

    rois (regions of interest) attached to the fixed and moving images, each defining as:

    [xmin, xmax, ymin, ymax]

  • thresholds (iterable of 2 floats, optional) – Thresholds used to binarize the images. Default values are [0.5, 0.5]

  • bin_inversions (iterable of 2 bools, optional) – Activation keywords to reverse the image binarization

on_closing()

To quit ‘properly’ the application

images_alignment.application.app.launcher(fname_json=None)

Launch the appli