Brute force nonlocal means