Separability-based multiscale basis selection and feature extraction for signal and image classification