Efficient determination of the optimum gain and angle in the design of optical correlation filters

In designing optimal correlation filters for implementation on arbitrary spatial light modulators, we need to determine two parameters (a gain and an angle) to maximize the performance criterion of interest. We present a method to find these optimal gain and angle parameters directly.