Grey-level thresholding of images using a correlation criterion