Extract metadata from microscopy image tiles and write FEABAS-compatible coordinate files for stitching pipelines.
The preferred way of installing stitchmeta is using pip.
stitchmeta can be installed using pip to obtain the current release:
python -m pip install stitchmeta
Clone this repository and install from the local source tree:
git clone https://github.com/thomasisensee/stitchmeta.git
cd stitchmeta
python -m pip install .For development, it is recommended to use an editable install:
python -m pip install --editable .[tests]Having done so, the test suite can be run using pytest:
python -m pytest
Expected input layout:
dataset_root/
001/
tile_a.tif
tile_b.tif
002/
...
Run extraction:
stitchmeta extract \
-i dataset_root \
-o feabas_coordsThe command writes one FEABAS text file per section (001.txt, 002.txt, ...).
from stitchmeta import extract
summary = extract(
input_root="dataset_root",
output_dir="feabas_coords",
reader_name="fibics_tiff",
invert_y=True,
error_policy="partial",
)Register a new reader class implementing the TileReader interface and use it
through reader_name in the API or CLI.
This repository was set up using the SSC Cookiecutter for Python Packages.