Combine thresholding and MultilevelThresholding
Remove useless code