An optimal quadratic filter is developed to detect a target signature distorted by a linear transformation group (e.g. translations, scaling, etc.). The filter is constructed from the invariant subspaces of the transformation group. This guarantees an equal response to all target images. A maximum signal-to-clutter ratio is achieved with a weighted combination of invariant subspaces. Examples are discussed for some one-parameter subgroups of the projective transformation.