Format code

This commit is contained in:
jfmcarreira committed 2016-05-04 17:42:15 +01:00
1 parent 501e24fc5d
commit 404e58e0ce
109 files changed
+494 -593

No files matched your search

+3 -8
View File
@@ -32,8 +32,6 @@ using cv::Ptr;
using cv::Point;
using cv::Point2f;
OpticalFlowDualTVL1::OpticalFlowDualTVL1()
{
/* Module Definition */
@@ -79,7 +77,6 @@ PlaYUVerFrame* OpticalFlowDualTVL1::process( std::vector<PlaYUVerFrame*> apcFram
Mat_<Point2f> flow;
m_cTvl1->calc( cvMatPrev, cvMatAfter, flow );
// determine motion range:
Double maxrad = 1;
@@ -94,17 +91,17 @@ PlaYUVerFrame* OpticalFlowDualTVL1::process( std::vector<PlaYUVerFrame*> apcFram
}
}
Scalar vectorColor( 255,0,0,0 );
Scalar vectorColor( 255, 0, 0, 0 );
for( int y = m_iStep / 2; y < flow.rows; y += m_iStep )
{
for( int x = m_iStep / 2; x < flow.cols; x += m_iStep )
{
Point p = Point( x,y );
Point p = Point( x, y );
Point2f u = flow( y, x );
Point ui( u.x, u.y );
if( isFlowCorrect( u ) )
arrowedLine( cvMatAfter, p, p+ui, vectorColor );
arrowedLine( cvMatAfter, p, p + ui, vectorColor );
}
}
@@ -119,5 +116,3 @@ Void OpticalFlowDualTVL1::destroy()
m_pcOutputFrame = NULL;
}