Skip to content

lebedov/imshowpair

Repository files navigation

imshowpair

Package Description

Utility function for comparing two images. Inspired by MATLAB's imshowpair function.

Latest Version

Installation

imshowpair requires matplotlib. To install, download the source and run :

python setup.py install

Usage

Sample usage: :

import imshowpair
a = .. # load first image
b = .. # load second image
imshowpair.imshowpair(a, b)

If one specifies an image comparison function of two arguments as the method parameter, imshowpair will display its output alongside the original images. Several such functions (alpha blending, etc.) are implemented in imshowpair.utils. These may require additional dependencies such as scikit-image: :

import imshowpair
import imshowpair.utils as utils
a = .. # load first image
b = .. # load second image
imshowpair.imshowpair(a, b, method=utils.blend)

Development

The latest source code can be obtained from GitHub.

Authors

See the included AUTHORS.rst file for more information.

License

This software is licensed under the BSD License. See the included LICENSE.rst file for more information.