fixed warnings

pull/31/head
Ilya Lavrenov 11 years ago
parent c064042c33
commit 89cd87107f
  1. 2
      modules/tracking/src/PFSolver.hpp
  2. 6
      modules/tracking/src/onlineBoosting.cpp

@ -136,7 +136,7 @@ namespace cv{
} }
_logweight.create(1,_particles.rows); _logweight.create(1,_particles.rows);
_logweight.setTo(-log(_particles.rows)); _logweight.setTo(-log((double)_particles.rows));
return 0.0; return 0.0;
} }

@ -132,9 +132,9 @@ int StrongClassifierDirectSelection::getSwappedClassifier() const
bool StrongClassifierDirectSelection::update( const Mat& image, int target, float importance ) bool StrongClassifierDirectSelection::update( const Mat& image, int target, float importance )
{ {
m_errorMask.assign( numAllWeakClassifier, 0 ); m_errorMask.assign( (size_t)numAllWeakClassifier, false );
m_errors.assign( numAllWeakClassifier, 0 ); m_errors.assign( (size_t)numAllWeakClassifier, 0.0f );
m_sumErrors.assign( numAllWeakClassifier, 0 ); m_sumErrors.assign( (size_t)numAllWeakClassifier, 0.0f );
baseClassifier[0]->trainClassifier( image, target, importance, m_errorMask ); baseClassifier[0]->trainClassifier( image, target, importance, m_errorMask );
for ( int curBaseClassifier = 0; curBaseClassifier < numBaseClassifier; curBaseClassifier++ ) for ( int curBaseClassifier = 0; curBaseClassifier < numBaseClassifier; curBaseClassifier++ )

Loading…
Cancel
Save