An invariant theory of linear functionals as linear feature extractors