Advertisement
lamiastella

removeNoise fixed

Jun 1st, 2017
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1.     for (int y = 0; y < xyzMap.rows; y++) {
  2.         for (int x = 0; x < xyzMap.cols; x++) {
  3.             if (xyzMap.at<cv::Vec3f>(y, x)[2] > 0.9f) {
  4.                 if (ampMap.data != NULL) {
  5.                     if (ampMap.at<float>(y, x) < CONFIDENCE_THRESHHOLD) {
  6.                         xyzMap.at<cv::Vec3f>(y, x)[0] = 0;
  7.                         xyzMap.at<cv::Vec3f>(y, x)[1] = 0;
  8.                         xyzMap.at<cv::Vec3f>(y, x)[2] = 0;
  9.                     }
  10.                 }
  11.             }
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement