Statistical Pattern Spectrum for Binary Pattern Recognition