1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/src/nodelet/lk_flow_nodelet.cpp b/src/nodelet/lk_flow_nodelet.cpp
index 24825ad..533e5ab 100644
--- a/src/nodelet/lk_flow_nodelet.cpp
+++ b/src/nodelet/lk_flow_nodelet.cpp
@@ -159,7 +159,7 @@ class LKFlowNodelet : public opencv_apps::Nodelet
if( needToInit )
{
// automatic initialization
- cv::goodFeaturesToTrack(gray, points[1], MAX_COUNT, 0.01, 10, cv::Mat(), 3, 0, 0.04);
+ cv::goodFeaturesToTrack(gray, points[1], MAX_COUNT, 0.01, 10, cv::Mat(), 3, false, 0.04);
cv::cornerSubPix(gray, points[1], subPixWinSize, cv::Size(-1,-1), termcrit);
addRemovePt = false;
}
|