Method A uses Measurement Area type L

Type B leads to a segFault.
So now MA Type B  are ignored for Method A
parent e2f36f18
Pipeline #18275 passed with stages
in 32 seconds
......@@ -701,8 +701,21 @@ bool ArgumentParser::ParseIniFile(const string& inifile)
for(TiXmlElement* xMeasurementArea=xMainNode->FirstChildElement("method_A")->FirstChildElement("measurement_area");
xMeasurementArea; xMeasurementArea = xMeasurementArea->NextSiblingElement("measurement_area"))
{
_areaIDforMethodA.push_back(xmltoi(xMeasurementArea->Attribute("id")));
Log->Write("INFO: \tMeasurement area id <%d> will be used for analysis", xmltoi(xMeasurementArea->Attribute("id")));
int id = xmltoi(xMeasurementArea->Attribute("id"));
if( _measurementAreas[id]->_type == "Line")
{
_areaIDforMethodA.push_back(id);
Log->Write("INFO: \tMeasurement area id <%d> will be used for analysis", id);
}
else
{
Log->Write("WARNING: \tMeasurement area id <%d> will NOT be used for analysis (Type <%s> is not Line)", id, _measurementAreas[id]->_type.c_str());
}
if(xMeasurementArea->Attribute("frame_interval"))
{
......
......@@ -38,8 +38,8 @@ Method_A::Method_A()
{
_classicFlow = 0;
_vDeltaT = 0;
_xCor(0,0);
_yCor(0,0);
//_xCor(0,0);
//_yCor(0,0);
_firstFrame = nullptr;
_passLine = nullptr;
_deltaT = 100;
......
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