update for opencv2.45, and use cv::ParallelLoopBody