A vectorized function to rapidly compute spatial statistics from partitions of an image