Skip to main content

A package for stitching mosaics from Cockpit with (or without) ROIs

Project description

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

Using StitchM:

To use command line script: StitchM --help and StitchM setup --help to get options and info To import into python: import stitch_m or from stitch_m import stitch_and_save, stitch, save depending on usage

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 tiff from .txt file that links to a .mrc
  • Applies exposure compensation from .txt file values
  • Slight exposure trimming to remove extreme highlights
  • Image normalisation
  • OME-TIFF metadata
  • Supports regions of interests (ROIs) if markers have been placed and exported to a separate .txt file
  • Drag and drop (.bat) processing of a single mosaic (accepts additional ROI file, not batch processing)
  • Filtering to attempt to remove fluorecence images (optional in config file)
  • Logging level for log file and terminal interface can be separately set in config file
  • Command line script interface ("StitchM -h" for details)
  • Python module entry point (python -m stitch_m *args*)
  • Python package (main functions for import from stitch_m import stitch_and_save, stitch, save)

Copyright

StitchM is licensed under a BSD license, please see LICENSE file. Copyright (c) 2019-2020, 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

StitchM-1.2.2.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

StitchM-1.2.2-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file StitchM-1.2.2.tar.gz.

File metadata

  • Download URL: StitchM-1.2.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for StitchM-1.2.2.tar.gz
Algorithm Hash digest
SHA256 57b85b4f260257cb3d9ec43032f8482398c521f60cd4db0cf6a170c691013fe6
MD5 3ac57ff686a4e92aeb3317e3b2d04b85
BLAKE2b-256 2fad0d10a2ce0e6376c6f09ddbe8f6fdbc3843b7d24001bcd52c83f40a043428

See more details on using hashes here.

File details

Details for the file StitchM-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: StitchM-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for StitchM-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7c99623e7e9e6b3bc3bf639d848ad3e2331631a6b76b4fd6e0afd5531167b7b2
MD5 a7283fc902c8c5ab3cc83f7bc16ff3c3
BLAKE2b-256 3f3bf009efa0c3aa1e1fef6e00450a139116fbf25a3ee3571fc6883101c5a70b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page