Merge pull request #351 from sunglok:bugfix_trackerMIL

pull/343/merge
Vadim Pisarevsky 9 years ago
commit 7b1068d8a0
  1. 6
      modules/tracking/src/trackerMIL.cpp

@ -71,9 +71,9 @@ class TrackerMILImpl : public TrackerMIL
TrackerMIL::Params::Params() TrackerMIL::Params::Params()
{ {
samplerInitInRadius = 3; samplerInitInRadius = 3;
samplerTrackInRadius = 4;
samplerSearchWinSize = 25; samplerSearchWinSize = 25;
samplerInitMaxNegNum = 65; samplerInitMaxNegNum = 65;
samplerTrackInRadius = 4;
samplerTrackMaxPosNum = 100000; samplerTrackMaxPosNum = 100000;
samplerTrackMaxNegNum = 65; samplerTrackMaxNegNum = 65;
featureSetNumFeatures = 250; featureSetNumFeatures = 250;
@ -83,7 +83,7 @@ void TrackerMIL::Params::read( const cv::FileNode& fn )
{ {
samplerInitInRadius = fn["samplerInitInRadius"]; samplerInitInRadius = fn["samplerInitInRadius"];
samplerSearchWinSize = fn["samplerSearchWinSize"]; samplerSearchWinSize = fn["samplerSearchWinSize"];
samplerInitInRadius = fn["samplerInitInRadius"]; samplerInitMaxNegNum = fn["samplerInitMaxNegNum"];
samplerTrackInRadius = fn["samplerTrackInRadius"]; samplerTrackInRadius = fn["samplerTrackInRadius"];
samplerTrackMaxPosNum = fn["samplerTrackMaxPosNum"]; samplerTrackMaxPosNum = fn["samplerTrackMaxPosNum"];
samplerTrackMaxNegNum = fn["samplerTrackMaxNegNum"]; samplerTrackMaxNegNum = fn["samplerTrackMaxNegNum"];
@ -94,7 +94,7 @@ void TrackerMIL::Params::write( cv::FileStorage& fs ) const
{ {
fs << "samplerInitInRadius" << samplerInitInRadius; fs << "samplerInitInRadius" << samplerInitInRadius;
fs << "samplerSearchWinSize" << samplerSearchWinSize; fs << "samplerSearchWinSize" << samplerSearchWinSize;
fs << "samplerInitInRadius" << samplerInitInRadius; fs << "samplerInitMaxNegNum" << samplerInitMaxNegNum;
fs << "samplerTrackInRadius" << samplerTrackInRadius; fs << "samplerTrackInRadius" << samplerTrackInRadius;
fs << "samplerTrackMaxPosNum" << samplerTrackMaxPosNum; fs << "samplerTrackMaxPosNum" << samplerTrackMaxPosNum;
fs << "samplerTrackMaxNegNum" << samplerTrackMaxNegNum; fs << "samplerTrackMaxNegNum" << samplerTrackMaxNegNum;

Loading…
Cancel
Save