File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ namespace cv{
103103 _particles.row (i).copyTo (new_particles.row (num_particles));
104104 }
105105 }
106- Mat_<double > maxrow=_particles.row (std::max_element (_logweight.begin (),_logweight.end ())-_logweight.begin ());
106+ Mat_<double > maxrow; // =_particles.row(std::max_element(_logweight.begin(),_logweight.end())-_logweight.begin());
107107 for (;num_particles<new_particles.rows ;num_particles++){
108108 maxrow.copyTo (new_particles.row (num_particles));
109109 }
@@ -208,7 +208,7 @@ namespace cv{
208208 }
209209 void PFSolver::normalize (Mat_<double >& row){
210210 double logsum=0.0 ;
211- double max=*(std::max_element (row.begin (),row.end ()));
211+ double max; // =*(std::max_element(row.begin(),row.end()));
212212 row-=max;
213213 for (int i=0 ;i<row.cols ;i++){
214214 logsum+=exp (row (0 ,i));
You can’t perform that action at this time.
0 commit comments