optimization of cv::CLAHE