1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 19:44:14 +08:00

fixed warnings

This commit is contained in:
Ilya Lavrenov
2014-06-16 18:38:03 +04:00
parent 079ff5c06d
commit ae5c87eafa
30 changed files with 194 additions and 181 deletions

View File

@@ -106,7 +106,7 @@ namespace cv{
//Mat_<double> maxrow=_particles.row(std::max_element(_logweight.begin(),_logweight.end())-_logweight.begin());
double max_element;
minMaxLoc(_logweight, 0, &max_element);
Mat_<double> maxrow=_particles.row(max_element);
Mat_<double> maxrow=_particles.row((int)max_element);
for(;num_particles<new_particles.rows;num_particles++){
maxrow.copyTo(new_particles.row(num_particles));
}