A fast technique for gray level image thresholding and quantization based on the entropy maximization