Implementation of Grayscale and Thresholding - Monica, Njoo, Vega (2014)