1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

imgproc: align GaussianBlur/sepFilter2D OpenCL with CPU version

This commit is contained in:
Alexander Alekhin
2020-06-26 22:31:02 +00:00
parent 2fed41dfa5
commit 762a5c8334
7 changed files with 273 additions and 108 deletions
@@ -275,8 +275,12 @@ void BlocksGainCompensator::feed(const std::vector<Point> &corners, const std::v
gain_map(by, bx) = static_cast<float>(gains[bl_idx]);
}
sepFilter2D(gain_maps_[img_idx], gain_maps_[img_idx], CV_32F, ker, ker);
sepFilter2D(gain_maps_[img_idx], gain_maps_[img_idx], CV_32F, ker, ker);
// 2 smooth passes
UMat result;
sepFilter2D(gain_maps_[img_idx], result, CV_32F, ker, ker);
UMat result2;
sepFilter2D(result, result2, CV_32F, ker, ker);
swap(gain_maps_[img_idx], result2);
}
}