Exactly what I was looking for. Would you save the output of corner_harris in a variable outside of the loop to speedup the test?

Thanks!