An automatic decision threshold for polarity coincidence arrays