Automatic thresholding using a modified valley emphasis. Issue 3 (27th January 2020)