From 4a64d570312a7c710b4baa60741c5133c71cf8b2 Mon Sep 17 00:00:00 2001 From: Sunglok Choi Date: Thu, 27 Aug 2015 10:41:52 +0900 Subject: [PATCH] Fixed a minor bug on reading/writing trackerMIL::Param. --- modules/tracking/src/trackerMIL.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/tracking/src/trackerMIL.cpp b/modules/tracking/src/trackerMIL.cpp index a98c787de..b45facaa2 100644 --- a/modules/tracking/src/trackerMIL.cpp +++ b/modules/tracking/src/trackerMIL.cpp @@ -71,9 +71,9 @@ class TrackerMILImpl : public TrackerMIL TrackerMIL::Params::Params() { samplerInitInRadius = 3; - samplerTrackInRadius = 4; samplerSearchWinSize = 25; samplerInitMaxNegNum = 65; + samplerTrackInRadius = 4; samplerTrackMaxPosNum = 100000; samplerTrackMaxNegNum = 65; featureSetNumFeatures = 250; @@ -83,7 +83,7 @@ void TrackerMIL::Params::read( const cv::FileNode& fn ) { samplerInitInRadius = fn["samplerInitInRadius"]; samplerSearchWinSize = fn["samplerSearchWinSize"]; - samplerInitInRadius = fn["samplerInitInRadius"]; + samplerInitMaxNegNum = fn["samplerInitMaxNegNum"]; samplerTrackInRadius = fn["samplerTrackInRadius"]; samplerTrackMaxPosNum = fn["samplerTrackMaxPosNum"]; samplerTrackMaxNegNum = fn["samplerTrackMaxNegNum"]; @@ -94,7 +94,7 @@ void TrackerMIL::Params::write( cv::FileStorage& fs ) const { fs << "samplerInitInRadius" << samplerInitInRadius; fs << "samplerSearchWinSize" << samplerSearchWinSize; - fs << "samplerInitInRadius" << samplerInitInRadius; + fs << "samplerInitMaxNegNum" << samplerInitMaxNegNum; fs << "samplerTrackInRadius" << samplerTrackInRadius; fs << "samplerTrackMaxPosNum" << samplerTrackMaxPosNum; fs << "samplerTrackMaxNegNum" << samplerTrackMaxNegNum;