Region similarity measure in brute-force