From a2646062b2ee6a22f78d6fd8399642d3419e3d1f Mon Sep 17 00:00:00 2001 From: Rostislav Vasilikhin Date: Fri, 16 Dec 2016 15:43:11 +0300 Subject: [PATCH] ivx::Scalars replaced by immediate values --- modules/imgproc/src/featureselect.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/imgproc/src/featureselect.cpp b/modules/imgproc/src/featureselect.cpp index 1e6b593390..fc1b034209 100644 --- a/modules/imgproc/src/featureselect.cpp +++ b/modules/imgproc/src/featureselect.cpp @@ -295,10 +295,10 @@ static bool openvx_harris(Mat image, OutputArray _corners, ivx::Scalar strengthThresh = ivx::Scalar::create(context, 0); //The gradient window size to use on the input. - ivx::Scalar gradientSize = ivx::Scalar::create(context, 3); + vx_int32 gradientSize = 3; //The block window size used to compute the harris corner score - ivx::Scalar blockSize = ivx::Scalar::create(context, _blockSize); + vx_int32 blockSize = _blockSize; //The scalar sensitivity threshold k from the Harris-Stephens equation ivx::Scalar sensivity = ivx::Scalar::create(context, _harrisK); @@ -311,8 +311,7 @@ static bool openvx_harris(Mat image, OutputArray _corners, ivx::Scalar numCorners = ivx::Scalar::create(context, 0); IVX_CHECK_STATUS(vxuHarrisCorners(context, ovxImage, strengthThresh, minDistance, sensivity, - gradientSize.getValue(), blockSize.getValue(), - corners, numCorners)); + gradientSize, blockSize, corners, numCorners)); std::vector vxKeypoints; corners.copyTo(vxKeypoints);