Merge pull request #828 from alalek:fix_optflow

optflow: fix test failure

MSVS2013:
- DenseOpticalFlow_GlobalPatchColliderDCT.ReferenceAccuracy
- DenseOpticalFlow_GlobalPatchColliderWHT.ReferenceAccuracy
pull/829/head
Alexander Alekhin 9 years ago committed by GitHub
parent efc560010e
commit c47b0ea23c
  1. 4
      modules/optflow/src/sparse_matching_gpc.cpp

@ -466,8 +466,8 @@ double GPCPatchDescriptor::dot( const Vec< double, nFeatures > &coef ) const
v_float64x2 sum = v_setzero_f64();
for ( unsigned i = 0; i < nFeatures; i += 2 )
{
v_float64x2 x = v_load_aligned( &feature.val[i] );
v_float64x2 y = v_load_aligned( &coef.val[i] );
v_float64x2 x = v_load( &feature.val[i] );
v_float64x2 y = v_load( &coef.val[i] );
sum = v_muladd( x, y, sum );
}
#if CV_SSE2

Loading…
Cancel
Save