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()
{
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;

Loading…
Cancel
Save