A Comprehensive Evaluation of Spectral Distance Functions and Image Processing