From 399065965bfd6f27a58a15623d7cbbb6ae334e98 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Wed, 4 May 2016 00:47:08 +0100 Subject: [PATCH] Change the start point of optical flow draw --- modules/OpticalFlowDualTVL1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/OpticalFlowDualTVL1.cpp b/modules/OpticalFlowDualTVL1.cpp index a83936e..d2a8508 100644 --- a/modules/OpticalFlowDualTVL1.cpp +++ b/modules/OpticalFlowDualTVL1.cpp @@ -95,9 +95,9 @@ PlaYUVerFrame* OpticalFlowDualTVL1::process( std::vector 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 );