Change of the threshold value for pixel validity check.
It can also be increased close to the metropro constant. Suggestion of another method using numpy optimized function.
Edited by Francois Perrin
It can also be increased close to the metropro constant. Suggestion of another method using numpy optimized function.