1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-16 13:57:05 +08:00

Merge pull request #828 from alalek:fix_optflow

optflow: fix test failure

MSVS2013:
- DenseOpticalFlow_GlobalPatchColliderDCT.ReferenceAccuracy
- DenseOpticalFlow_GlobalPatchColliderWHT.ReferenceAccuracy
This commit is contained in:
Alexander Alekhin
2016-10-21 21:18:54 +03:00
committed by GitHub
parent efc560010e
commit c47b0ea23c

View File

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