Remove histogram equalization in pre-processing step
Add function to project image horizontally and vertically