@@ -75,6 +75,17 @@ vpMbGenericTracker baseTrackerConstructor()
75
75
76
76
t.setAngleAppear (vpMath::rad (60 ));
77
77
t.setAngleDisappear (vpMath::rad (90 ));
78
+ vpMe me;
79
+ me.setSampleStep (2.0 );
80
+ me.setMaskSize (7 );
81
+ me.setMaskNumber (160 );
82
+ me.setRange (8 );
83
+ me.setLikelihoodThresholdType (vpMe::NORMALIZED_THRESHOLD);
84
+ me.setThreshold (20 );
85
+ me.setMu1 (0.2 );
86
+ me.setMu2 (0.3 );
87
+ me.setSampleStep (4 );
88
+ t.setMovingEdge (me);
78
89
return t;
79
90
}
80
91
@@ -103,7 +114,6 @@ void compareNamesAndTypes(const vpMbGenericTracker &t1, const vpMbGenericTracker
103
114
void compareCameraParameters (const vpMbGenericTracker &t1, const vpMbGenericTracker &t2)
104
115
{
105
116
std::map<std::string, vpCameraParameters> c1, c2;
106
- vpCameraParameters c;
107
117
t1.getCameraParameters (c1);
108
118
t2.getCameraParameters (c2);
109
119
REQUIRE (c1 == c2);
@@ -185,6 +195,8 @@ SCENARIO("MBT JSON Serialization", "[json]")
185
195
&vpMe::getMaskNumber, " Mask number should be equal" ,
186
196
&vpMe::getMaskSign, " Mask sign should be equal" ,
187
197
&vpMe::getMinSampleStep, " Min sample step should be equal" ,
198
+ &vpMe::getSampleStep, " Min sample step should be equal" ,
199
+
188
200
&vpMe::getMu1, " Mu 1 should be equal" ,
189
201
&vpMe::getMu2, " Mu 2 should be equal" ,
190
202
&vpMe::getNbTotalSample, " Nb total sample should be equal" ,
0 commit comments