Skip to content

Instantly share code, notes, and snippets.

View moadAlami's full-sized avatar


View GitHub Profile
moadAlami /
Created June 24, 2018 18:07 — forked from bistaumanga/
Histogram Equalization in python
import numpy as np
def imhist(im):
# calculates normalized histogram of an image
m, n = im.shape
h = [0.0] * 256
for i in range(m):
for j in range(n):
h[im[i, j]]+=1
return np.array(h)/(m*n)
moadAlami /
Created July 21, 2018 23:04 — forked from jqtrde/
Modern remote sensing image processing with Python