mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
fixed extrapolation for ocl::cornerMinEigenVal and ocl::cornerHarris; enabled CV_32FC1 for the first function
This commit is contained in:
@@ -233,12 +233,12 @@ double checkRectSimilarity(Size sz, std::vector<Rect>& ob1, std::vector<Rect>& o
|
||||
|
||||
void showDiff(const Mat& gold, const Mat& actual, double eps, bool alwaysShow)
|
||||
{
|
||||
Mat diff;
|
||||
Mat diff, diff_thresh;
|
||||
absdiff(gold, actual, diff);
|
||||
diff.convertTo(diff, CV_32F);
|
||||
threshold(diff, diff, eps, 255.0, cv::THRESH_BINARY);
|
||||
threshold(diff, diff_thresh, eps, 255.0, cv::THRESH_BINARY);
|
||||
|
||||
if (alwaysShow || cv::countNonZero(diff.reshape(1)) > 0)
|
||||
if (alwaysShow || cv::countNonZero(diff_thresh.reshape(1)) > 0)
|
||||
{
|
||||
namedWindow("gold", WINDOW_NORMAL);
|
||||
namedWindow("actual", WINDOW_NORMAL);
|
||||
|
||||
Reference in New Issue
Block a user