Techniques of frequency domain correlation for face recognition and its photonic implementation