The use of the diffraction phenomenon in pattern recognition is a well-established area in optical information processing. Typically the generation of a correlation peak by suitable filters is used to recognize a pattern. We introduce a symmetry measure for pattern recognition. It can be used for a wide class of filters, which we call phase-matched filters. Encoding techniques of diffractive optics allow its implementation as amplitude- or phase-encoded filters.