global-contrast-factor-python

Global contrast Factor - Python


Keywords
contrast, image
License
MIT
Install
pip install global-contrast-factor-python==0.0.1

Documentation

Python implementation of Global Contrast Factor - a New Approach to Image Contrast

Usage

import cv2
from global_contrast_factor import GlobalContrastFactor

img = cv2.imread("./images/img1.png")
img_low_contrast = cv2.imread("./images/img_contrast50.png")

gfc = GlobalContrastFactor()

print(gfc(img))
print(gfc(img_low_contrast))

Install

git clone https://github.com/jinwonkim93/global-contrast-factor-python.git
cd global-contrast-factor-python
pip install -e .