Popularity
2.5
Declining
Activity
0.0
Stable
208
9
25

Description

An image histogram remapping script written in Python 2.7 by Anthony Kesich and Ross Goodwin. Changes source image so that source image's histogram matches target image's histogram. Requires PIL/Pillow:

Code Quality Rank: L5
Programming language: Python
License: GNU General Public License v3.0 or later
Tags: Imagery    

hmap alternatives and similar packages

Based on the "Imagery" category.
Alternatively, view hmap alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of hmap or a related project?

Add another 'Imagery' Package

README

Hmap

An image histogram remapping script written in Python 2.7 by Anthony Kesich and Ross Goodwin. Changes source image so that source image's histogram matches target image's histogram. Requires PIL/Pillow:

$ sudo pip install Pillow

To run Hmap, cd into the directory where hmap.py (for black and white images) or hmap_c.py (for color images) is located. Ensure source and target images have the same height and width dimensions (in pixels), and place them in the directory. Run the script with 2 additional arguments (source and target image files) as shown in the following example.

Example:

$ python hmap_c.py source_image.jpg target_image.jpg

hmap.py

Source Image:

Source Image

Target Image:

Target Image

Result:

Result

Photographs by Ansel Adams

hmap_c.py

Color Source Image:

Color Source Image

Color Target Image:

Target Image

Result:

Result

Photographs by Steve McCurry