Invariant Feature Extraction and Classification in Kernel Spaces