Skip to content

Instantly share code, notes, and snippets.

Avatar

moadAlami

  • MAScIR
View GitHub Profile
@moadAlami
moadAlami / modern-geospatial-python.md
Created Jul 21, 2018 — forked from jqtrde/modern-geospatial-python.md
Modern remote sensing image processing with Python
@moadAlami
moadAlami / hist.py
Created Jun 24, 2018 — forked from bistaumanga/hist.py
Histogram Equalization in python
View hist.py
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)