Commit 41c47a84 authored by E Sommerlade's avatar E Sommerlade

restored Parameters() constructor to maintain ABI compatibility. Added CV_EXPORTS to nested class

parent d0474a9b
...@@ -59,16 +59,12 @@ namespace cv ...@@ -59,16 +59,12 @@ namespace cv
class CV_EXPORTS DetectionBasedTracker class CV_EXPORTS DetectionBasedTracker
{ {
public: public:
struct Parameters struct CV_EXPORTS Parameters
{ {
int maxTrackLifetime; int maxTrackLifetime;
int minDetectionPeriod; //the minimal time between run of the big object detector (on the whole frame) in ms (1000 mean 1 sec), default=0 int minDetectionPeriod; //the minimal time between run of the big object detector (on the whole frame) in ms (1000 mean 1 sec), default=0
Parameters() Parameters();
{
maxTrackLifetime=5;
minDetectionPeriod=0;
}
}; };
class IDetector class IDetector
......
...@@ -578,6 +578,12 @@ bool cv::DetectionBasedTracker::SeparateDetectionWork::communicateWithDetectingT ...@@ -578,6 +578,12 @@ bool cv::DetectionBasedTracker::SeparateDetectionWork::communicateWithDetectingT
return shouldHandleResult; return shouldHandleResult;
} }
cv::DetectionBasedTracker::Parameters::Parameters()
{
maxTrackLifetime = 5;
minDetectionPeriod = 0;
}
cv::DetectionBasedTracker::InnerParameters::InnerParameters() cv::DetectionBasedTracker::InnerParameters::InnerParameters()
{ {
numLastPositionsToTrack=4; numLastPositionsToTrack=4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment