@@ -275,7 +275,7 @@ struct VxKeypointsComparator
275
275
276
276
static bool openvx_harris (Mat image, OutputArray _corners,
277
277
int _maxCorners, double _qualityLevel, double _minDistance,
278
- int _blockSize, int gradiantSize , double _harrisK)
278
+ int _blockSize, int _gradientSize , double _harrisK)
279
279
{
280
280
using namespace ivx ;
281
281
@@ -295,7 +295,7 @@ static bool openvx_harris(Mat image, OutputArray _corners,
295
295
ivx::Scalar strengthThresh = ivx::Scalar::create<VX_TYPE_FLOAT32>(context, 0 );
296
296
297
297
// The gradient window size to use on the input.
298
- vx_int32 gradientSize = 3 ;
298
+ vx_int32 gradientSize = _gradientSize ;
299
299
300
300
// The block window size used to compute the harris corner score
301
301
vx_int32 blockSize = _blockSize;
@@ -379,7 +379,7 @@ void cv::goodFeaturesToTrack( InputArray _image, OutputArray _corners,
379
379
// Disabled due to bad accuracy
380
380
CV_OVX_RUN (false && useHarrisDetector && _mask.empty () &&
381
381
!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))
383
383
384
384
if ( useHarrisDetector )
385
385
cornerHarris ( image, eig, blockSize, gradientSize, harrisK );
0 commit comments