toxic-0518 / pairwise_stitch

A python implementation for multi page tif stitching

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pairwise Stitching

A python implementation for multi-page tiff stitching.

Prerequisites

Environment

Python >= 3.6
OpenCV (3.3 <= version <= 3.4.16) ( with opencv-contrib)
numpy

For your convenience, I recommend you use anaconda to build enviromnment.

miniconda documentation: link

Test Data (Optional)

link: https://pan.baidu.com/s/1X6-DxoKUwHy9y3ZHMdNfHQ. access code: pbtd

Useage

git clone https://github.com/toxic-0518/pairwise_stitch.git
cd pairwise_stitch
conda env create -f requirements.yml
conda activate pairwise_stitch

To test code, you should download tiff files or use your own tiff files. Put it into right place,

then update code in pairwise_stitch.py.

if __name__ == '__main__':
    """your test code goes here"""
    pairwise_stitch(your_tiff_filepath_1, your_tiff_filepath_2, debug=True)

then run

python pairwise_stitch.py

Some Examples

SIFT matching result:

image image image image

stitch result:

image image image image

About

A python implementation for multi page tif stitching


Languages

Language:Python 100.0%