Skip to content

Commit 9dc103f

Browse files
João FaroJoão Faro
João Faro
authored and
João Faro
committed
Changed createHanningMats signature to void
1 parent a148f31 commit 9dc103f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/kcftracker.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ cv::Mat KCFTracker::getFeatures(const cv::Mat & image, bool inithann, float scal
479479
}
480480

481481
// Initialize Hanning window. Function called only in the first frame.
482-
bool KCFTracker::createHanningMats()
482+
void KCFTracker::createHanningMats()
483483
{
484484
cv::Mat hann1t = cv::Mat(cv::Size(size_patch[1],1), CV_32F, cv::Scalar(0));
485485
cv::Mat hann2t = cv::Mat(cv::Size(1,size_patch[0]), CV_32F, cv::Scalar(0));

src/kcftracker.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class KCFTracker : public Tracker
128128
cv::Mat getFeatures(const cv::Mat & image, bool inithann, float scale_adjust = 1.0f);
129129

130130
// Initialize Hanning window. Function called only in the first frame.
131-
bool createHanningMats();
131+
void createHanningMats();
132132

133133
// Calculate sub-pixel peak for one dimension
134134
float subPixelPeak(float left, float center, float right);

0 commit comments

Comments
 (0)