Utility function for comparing two images. Inspired by MATLAB's imshowpair function.
imshowpair requires matplotlib. To install, download the source and run :
python setup.py install
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)
The latest source code can be obtained from GitHub.
See the included AUTHORS.rst file for more information.
This software is licensed under the BSD License. See the included LICENSE.rst file for more information.