learn how to calculate histogram & CDF & stretching & equalization