Structural Resonance Methods for Image Processing and Pattern Recognition