Stitcher

src.processing_cores.stitcher.concatenate_transformation_matrix(first, second)

Multiply the second array by the first array.

Arguments:

first (numpy.ndarray): array second (numpy.ndarray): array by wich the first will be multiplied

Returns:

numpy.ndarray: array

src.processing_cores.stitcher.find_closer_neighbor(position, images, step_y=0, excluded_index=- 1)

Given a position, find the closer neighbor in images.

Arguments:

position (numpy.ndarray): x and y coordinates images (numpy.ndarray): list of Image step_y (int, optional): Step between the actual line and the last one. Defaults to 0. excluded_index (int, optional): Index to excluded from images. Defaults to -1.

Returns:

Image: Closer neighbor

src.processing_cores.stitcher.sort_by_decreasing_xy(images)

Sort by decreasing coordinates.

Arguments:

images (numpy.ndarray): list of images

Returns:

numpy.ndarray: images sort by decreasing coordinates

src.processing_cores.stitcher.sort_by_increasing_xy(images)

Sort by increasing coordinates.

Arguments:

images (numpy.ndarray): list of images

Returns:

numpy.ndarray: images sort by increasing coordinates

src.processing_cores.stitcher.stitch(images, metro)

Perform the stitching operation on the given images.

Arguments:

images (numpy.ndarray): list of images to stitch together metro (Metrology): metrology used for the normalization of images

Returns:

Image: Resulting image of the stitching

src.processing_cores.stitcher.transformation_matrix(layer, metro, index=- 1)

Calculate the transformation array of the last image of the layer.

Arguments:

layer (Layer): layer containing the images metro (Metrology): metrology used for the normalization of images index (int, optional): index of the image to which the transformation array is calculated. Defaults to -1.

Returns:

numpy.ndarray: Transformation array of the last image of the layer