Binary nonlinear joint transform correlation with median and subset median thresholding.