Skip to content

Commit 62c4cf3

Browse files
committed
fixed build of OpenVX Harris
1 parent b143f71 commit 62c4cf3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/imgproc/src/featureselect.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ struct VxKeypointsComparator
275275

276276
static bool openvx_harris(Mat image, OutputArray _corners,
277277
int _maxCorners, double _qualityLevel, double _minDistance,
278-
int _blockSize, int gradiantSize, double _harrisK)
278+
int _blockSize, int _gradientSize, double _harrisK)
279279
{
280280
using namespace ivx;
281281

@@ -295,7 +295,7 @@ static bool openvx_harris(Mat image, OutputArray _corners,
295295
ivx::Scalar strengthThresh = ivx::Scalar::create<VX_TYPE_FLOAT32>(context, 0);
296296

297297
//The gradient window size to use on the input.
298-
vx_int32 gradientSize = 3;
298+
vx_int32 gradientSize = _gradientSize;
299299

300300
//The block window size used to compute the harris corner score
301301
vx_int32 blockSize = _blockSize;
@@ -379,7 +379,7 @@ void cv::goodFeaturesToTrack( InputArray _image, OutputArray _corners,
379379
// Disabled due to bad accuracy
380380
CV_OVX_RUN(false && useHarrisDetector && _mask.empty() &&
381381
!ovx::skipSmallImages<VX_KERNEL_HARRIS_CORNERS>(image.cols, image.rows),
382-
openvx_harris(image, _corners, maxCorners, qualityLevel, minDistance, blockSize, gradiantSize, harrisK))
382+
openvx_harris(image, _corners, maxCorners, qualityLevel, minDistance, blockSize, gradientSize, harrisK))
383383

384384
if( useHarrisDetector )
385385
cornerHarris( image, eig, blockSize, gradientSize, harrisK );

0 commit comments

Comments
 (0)