Skip to main content

StitchM

StitchM stitches together mosaic images taken in Cockpit (Micron) into a universally readable format, currently '.ome.tiff'.

The current output is an 16bit greyscale image when stitching the mosaic. Markers exported from Cockpit can be added as rectangular ROIs within the OME metadata stored in the image header. ROIs can be imported and displayed using bioformats in FIJI/ImageJ.

Installation

Using pip: python -m pip install StitchM Available on PyPI and conda-forge. To use conda-forge, you may need to setup your conda by following instructions found here.

Using StitchM:

  • Command line script interface (accessible via StitchM or stitchm, use argument --help for more details)
  • Drag and drop shortcut (created using StitchM setup --windows-shortcut) that processes mosaic .txt file and optional marker file if dragged on together, but cannot do batch processing of directories
  • Module entry point (python -m stitch_m), which takes the paths of the mosaic and marker files in any order
  • Imported package: import stitch_m or from stitch_m import stitch_and_save, stitch, save

Motivation

To make a mosaic image that can be easily viewed and can be used for automatic alignment with a separate grid image (using gridSNAP).

Features

  • Creates OME-TIFF file from Cockpit's saved mosaic .txt file, which links to an .mrc file
    • OME metadata
    • Slight exposure trimming to remove extreme highlights
    • Image normalisation to fit data type
    • Optional filtering to remove fluorecence images (default can be changed in config file)
  • Supports adding regions of interests (ROIs) to metadata using a .txt file containing markers, as can be saved from Cockpit
  • Various default behaviours can be changed by editing a user config file (created using StitchM setup --config)

Copyright

StitchM is licensed under a BSD license, please see LICENSE file. Copyright (c) 2019-2021, Diamond Light Source Ltd. All rights reserved.

Additional information

StitchM uses OME metadata.

As Cockpit creates the images and accompanying files, so was referenced for the creation of this software. Cockpit is licensed under GNU and can be found at https://github.com/MicronOxford/cockpit

Release files for StitchM 1.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for StitchM 1.7.1
File Size Uploaded
stitchm-1.7.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for StitchM 1.7.1
File Interpreter ABI Platform
stitchm-1.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / stitchm-1.7.1.tar.gz

Download URL stitchm-1.7.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f6a76183da9f1e558f091714698ce62f13e66070ab35a657fb3895cf3120a8ae
BLAKE2b-256 checksum
How to use checksums
c2001e58899d440d374214385ac29d3af13b12c80452c765753e89b41528e2cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / stitchm-1.7.1-py3-none-any.whl

Download URL stitchm-1.7.1-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5c134cc84967245f8c2d4b5aa799e7ae05623d3d3efd21361718c1d3dd1caaab
BLAKE2b-256 checksum
How to use checksums
3892590fb43ea375ab2fd2a19b139298d08d51b49d046c3a67219e15c414cc3c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

1.7.1 This release

2 release files

1.7.0

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page