Major changes on code

Remove Qt4 support
Change include headers
Change the include of QCustomPlot lib and updated code based on upstream
This commit is contained in:
2017-12-06 03:11:02 +00:00
parent 73d843abf5
commit 430bdc09cd
66 changed files with 38551 additions and 29387 deletions
+7 -14
View File
@@ -75,16 +75,12 @@ Void MeasureOpticalFlowDualTVL1::drawFlow()
Mat cvMatAfter;
m_pcFrameAfter->toMat( cvMatAfter, true );
Scalar vectorColor( 255, 0, 0, 0 );
for( int y = m_iStep / 2; y < m_cvFlow.rows; y += m_iStep )
{
for( int x = m_iStep / 2; x < m_cvFlow.cols; x += m_iStep )
{
for( int y = m_iStep / 2; y < m_cvFlow.rows; y += m_iStep ) {
for( int x = m_iStep / 2; x < m_cvFlow.cols; x += m_iStep ) {
Point2f u( 0, 0 );
Double count = 0;
for( int i = ( -m_iStep / 2 ); i < ( m_iStep / 2 ); i++ )
{
for( int j = ( -m_iStep / 2 ); j < ( m_iStep / 2 ); j++ )
{
for( int i = ( -m_iStep / 2 ); i < ( m_iStep / 2 ); i++ ) {
for( int j = ( -m_iStep / 2 ); j < ( m_iStep / 2 ); j++ ) {
if( isFlowCorrect( u ) )
{
u = u + m_cvFlow( y, x );
@@ -105,15 +101,12 @@ Void MeasureOpticalFlowDualTVL1::drawFlow()
Void MeasureOpticalFlowDualTVL1::compensateFlow()
{
for( UInt c = 0; c < m_pcOutputFrame->getNumberChannels(); c++ )
{
for( UInt c = 0; c < m_pcOutputFrame->getNumberChannels(); c++ ) {
Pel** pPelPrev = m_pcFramePrev->getPelBufferYUV()[c];
Pel* pPelOut = m_pcOutputFrame->getPelBufferYUV()[c][0];
for( UInt y = 0; y < m_pcOutputFrame->getHeight( c ); y++ )
{
for( UInt x = 0; x < m_pcOutputFrame->getWidth( c ); x++ )
{
for( UInt y = 0; y < m_pcOutputFrame->getHeight( c ); y++ ) {
for( UInt x = 0; x < m_pcOutputFrame->getWidth( c ); x++ ) {
Point2f u = m_cvFlow( y, x );
Point p( x + u.x, y + u.y );
*pPelOut = pPelPrev[p.y][p.x];