Skip to content

Instantly share code, notes, and snippets.

@soykan
Created February 3, 2021 16:53
Show Gist options
  • Select an option

  • Save soykan/a59925a8dabf4275a18dcbd5b5a0e3bd to your computer and use it in GitHub Desktop.

Select an option

Save soykan/a59925a8dabf4275a18dcbd5b5a0e3bd to your computer and use it in GitHub Desktop.
import cv2
import numpy as np
lena_low_contrast = cv2.imread('lena-low-contrast.jpeg', cv2.IMREAD_GRAYSCALE)
cv2.imshow('Lena Low Contrast', lena_low_contrast)
lena = cv2.equalizeHist(lena_low_contrast)
cv2.imshow('Lena', lena)
cv2.waitKey(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment