microscopestitching API reference

microscopestitching package

microscopestitching.stitch(images)[source]

Stitch regular spaced images.

Parameters:images (list of tuple (path, row, column)) –

Each image-tuple should contain path, row and column. Row 0, column 0 is top left image.

Example: >>> images = [(‘1.png’, 0, 0), (‘2.png’, 0, 1)]

Returns:Merged image.
Return type:ndarray

Submodules

microscopestitching.stitching module

class microscopestitching.stitching.Image(path, row=None, col=None)[source]

Bases: object

class microscopestitching.stitching.ImageCollection(image_list)[source]

Bases: object

cols
image(row, col)[source]
rows
translation(img)[source]
microscopestitching.stitching.calc_translations_parallel(images)[source]

Calculate image translations in parallel.

Parameters:images (ImageCollection) – Images as instance of ImageCollection.
Returns:ty and tx is translation to previous image in respectively x or y direction.
Return type:2d array, (ty, tx)
microscopestitching.stitching.stitch(images)[source]

Stitch regular spaced images.

Parameters:images (list of tuple (path, row, column)) –

Each image-tuple should contain path, row and column. Row 0, column 0 is top left image.

Example: >>> images = [(‘1.png’, 0, 0), (‘2.png’, 0, 1)]

Returns:Merged image.
Return type:ndarray