Minor optimization for ocl_canny