Change the start point of optical flow draw

This commit is contained in:
jfmcarreira committed 2016-05-04 00:47:08 +01:00
1 parent 137bfa0dcf
commit 399065965b
1 file changed
+2 -2
+2 -2
View File
@@ -95,9 +95,9 @@ PlaYUVerFrame* OpticalFlowDualTVL1::process( std::vector<PlaYUVerFrame*> apcFram
}
Scalar vectorColor( 255,0,0,0 );
for( int y = 0; y < flow.rows; y+=m_iStep )
for( int y = m_iStep / 2; y < flow.rows; y += m_iStep )
{
for( int x = 0; x < flow.cols; x+=m_iStep )
for( int x = m_iStep / 2; x < flow.cols; x += m_iStep )
{
Point p = Point( x,y );
Point2f u = flow( y, x );