Self-Adaptable Templates for Feature Coding