Spectral Geometry For Structural Pattern Recognition