Comparison of parallelized gray-scale zonal operations on CPU and GPU