Skip to content

A python implementation for multi page tif stitching

Notifications You must be signed in to change notification settings

toxic-0518/pairwise_stitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages