mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 08:13:04 +04:00
ocl: fix warnings from GCC 4.8, update Haar
This commit is contained in:
@@ -1290,14 +1290,14 @@ void CV_FitLineTest::generate_point_set( void* pointsSet )
|
||||
t = (float)((cvtest::randReal(rng)-0.5)*low_high_range*2);
|
||||
|
||||
for( k = 0; k < n; k++ )
|
||||
{
|
||||
p[k] = (float)((cvtest::randReal(rng)-0.5)*max_noise*2 + t*line0[k] + line0[k+n]);
|
||||
|
||||
if( point_type == CV_32S )
|
||||
for( k = 0; k < n; k++ )
|
||||
if( point_type == CV_32S )
|
||||
pi[k] = cvRound(p[k]);
|
||||
else
|
||||
for( k = 0; k < n; k++ )
|
||||
else
|
||||
pf[k] = p[k];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user