Skip to content
Snippets Groups Projects
Commit fbc721a5 authored by junzhang's avatar junzhang
Browse files

Improved a feature relating to the setting of starting and ending time of the analysis.

parent c438fe39
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,14 @@ bool Method_D::Process (const PedData& peddata,const std::string& scriptsLocatio ...@@ -76,6 +76,14 @@ bool Method_D::Process (const PedData& peddata,const std::string& scriptsLocatio
int minFrame = peddata.GetMinFrame(); int minFrame = peddata.GetMinFrame();
if(_startFrame!=_stopFrame) if(_startFrame!=_stopFrame)
{ {
if(_startFrame==-1)
{
_startFrame = minFrame;
}
if(_stopFrame==-1)
{
_stopFrame = peddata.GetNumFrames()+minFrame;
}
for(std::map<int , std::vector<int> >::iterator ite=_peds_t.begin();ite!=_peds_t.end();ite++) for(std::map<int , std::vector<int> >::iterator ite=_peds_t.begin();ite!=_peds_t.end();ite++)
{ {
if((ite->first + minFrame)<_startFrame || (ite->first + minFrame) >_stopFrame) if((ite->first + minFrame)<_startFrame || (ite->first + minFrame) >_stopFrame)
...@@ -125,7 +133,7 @@ bool Method_D::Process (const PedData& peddata,const std::string& scriptsLocatio ...@@ -125,7 +133,7 @@ bool Method_D::Process (const PedData& peddata,const std::string& scriptsLocatio
} }
int NumPeds = IdInFrame.size(); int NumPeds = IdInFrame.size();
//--------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------
if(NumPeds>2) if(NumPeds>3)
{ {
if(_isOneDimensional) if(_isOneDimensional)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment