Statistics for Constraints and invariance in target detection