@@ -512,8 +512,8 @@ pcl::tracking::PyramidalKLTTracker<PointInT, IntensityT>::track (const PointClou
512512 iprev_point[0 ] = floor (prev_pt[0 ]);
513513 iprev_point[1 ] = floor (prev_pt[1 ]);
514514
515- if (iprev_point[0 ] < -track_width_ || iprev_point[0 ] >= grad_x.width ||
516- iprev_point[1 ] < -track_height_ || iprev_point[1 ] >= grad_y.height )
515+ if (iprev_point[0 ] < -track_width_ || ( uint32_t ) iprev_point[0 ] >= grad_x.width ||
516+ iprev_point[1 ] < -track_height_ || ( uint32_t ) iprev_point[1 ] >= grad_y.height )
517517 {
518518 if (level == 0 )
519519 status [ptidx] = -1 ;
@@ -544,13 +544,13 @@ pcl::tracking::PyramidalKLTTracker<PointInT, IntensityT>::track (const PointClou
544544 next_pt -= half_win;
545545
546546 Eigen::Array2f prev_delta;
547- for (int j = 0 ; j < max_iterations_; j++)
547+ for (unsigned int j = 0 ; j < max_iterations_; j++)
548548 {
549549 inext_pt[0 ] = floor (next_pt[0 ]);
550550 inext_pt[1 ] = floor (next_pt[1 ]);
551551
552- if (inext_pt[0 ] < -track_width_ || inext_pt[0 ] >= next.width ||
553- inext_pt[1 ] < -track_height_ || inext_pt[1 ] >= next.height )
552+ if (inext_pt[0 ] < -track_width_ || ( uint32_t ) inext_pt[0 ] >= next.width ||
553+ inext_pt[1 ] < -track_height_ || ( uint32_t ) inext_pt[1 ] >= next.height )
554554 {
555555 if (level == 0 )
556556 status[ptidx] = -1 ;
@@ -595,8 +595,8 @@ pcl::tracking::PyramidalKLTTracker<PointInT, IntensityT>::track (const PointClou
595595 inext_point[0 ] = floor (next_point[0 ]);
596596 inext_point[1 ] = floor (next_point[1 ]);
597597
598- if (inext_point[0 ] < -track_width_ || inext_point[0 ] >= next.width ||
599- inext_point[1 ] < -track_height_ || inext_point[1 ] >= next.height )
598+ if (inext_point[0 ] < -track_width_ || ( uint32_t ) inext_point[0 ] >= next.width ||
599+ inext_point[1 ] < -track_height_ || ( uint32_t ) inext_point[1 ] >= next.height )
600600 {
601601 status[ptidx] = -1 ;
602602 continue ;
0 commit comments