Algorithms and tools for stitching microscopy images taken at different focal lengths
Project description
Multifocal Image Stitching
Documentation | Build Status |
---|---|
Installation
To install from pypi:
pip install multifocal-stitching
Usage
Ensure the images to be stitched are sequentially named in dir
.
python -m multifocal_stitching -h
usage: __main__.py [-h] [-v] [-s STITCHING_RESULT] [-d RESULT_DIR] [-r] [--ext EXT] [--no_merge]
[--workers WORKERS] [--min_overlap MIN_OVERLAP]
[--early_term_thresh EARLY_TERM_THRESH] [--use_wins USE_WINS [USE_WINS ...]]
[--peak_cutoff_std PEAK_CUTOFF_STD] [--peaks_dist_threshold PEAKS_DIST_THRESHOLD]
[--filter_radius FILTER_RADIUS [FILTER_RADIUS ...]]
dir
positional arguments:
dir Base directory
options:
-h, --help show this help message and exit
-v, --verbose Increase output verbosity (default: False)
-s STITCHING_RESULT, --stitching_result STITCHING_RESULT
Stitching result csv file (default: stitching_result.csv)
-d RESULT_DIR, --result_dir RESULT_DIR
Directory to save merged files (default: merged)
-r, --exclude_reverse
Whether to additionally include img2 on top of img1 (default: False)
--ext EXT Filename extension of images (default: .jpg)
--no_merge Disable generating merged images (default: False)
--workers WORKERS Number of CPU threads to use in FFT (default: 2)
--min_overlap MIN_OVERLAP
Set lower limit for overlapping region as a fraction of total image area
(default: 0.125)
--early_term_thresh EARLY_TERM_THRESH
Stop searching when correlation is above this value (default: 0.7)
--use_wins USE_WINS [USE_WINS ...]
Whether to try using Hanning window (default: (0,))
--peak_cutoff_std PEAK_CUTOFF_STD
Number of standard deviations below max value to use for peak finding
(default: 1)
--peaks_dist_threshold PEAKS_DIST_THRESHOLD
Distance to consider as part of same cluster when finding peak centroid
(default: 25)
--filter_radius FILTER_RADIUS [FILTER_RADIUS ...]
Low-pass filter radii to try, smaller matches coarser/out-of-focus features
(default: (100, 50, 20))
Examples
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
Built Distribution
Close
Hashes for multifocal-stitching-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a21172c8723b4c0c6c9947b05fc450ebe2cafb980750bb3a9f6ceddb16a2bcf1 |
|
MD5 | 12afc37fb3e3d0637c12da2dc7634cba |
|
BLAKE2b-256 | 16d554d7ef15c557cca530839e9af8df3830b2002f47d6bcfcf0e2eec67f0b3a |
Close
Hashes for multifocal_stitching-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dca5ccc38da1ead19a52762afebed34f747571ef788a6a179de8692ba52d1b3e |
|
MD5 | 2073ba8514aa07edbd4f7047c87bc1ac |
|
BLAKE2b-256 | 073b62df4863786db78c377c06ebab7b901c17fd909689a9813c7b510ef0d847 |