Skip to content

Commit

Permalink
Merge pull request #87 from peakpang/peakpang-patch-1
Browse files Browse the repository at this point in the history
BugFix: PCL export working again. Removed valid layer and added a check for NaN.
  • Loading branch information
laxnpander authored Jun 2, 2023
2 parents 086f71e + bc1b879 commit 91e1e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/realm_io/src/pcl_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void saveElevationPointsRGB(const CvGridMap &map,
auto n = static_cast<uint32_t>(size.width*size.height);

cv::Mat elevation = map[ele_layer_name];
cv::Mat mask = map[mask_layer_name];
cv::Mat mask = (elevation == elevation);
cv::Mat color = map[color_layer_name];
if (color.type() == CV_8UC4)
cv::cvtColor(color, color, cv::ColorConversionCodes::COLOR_BGRA2BGR);
Expand Down Expand Up @@ -247,4 +247,4 @@ void saveElevationMeshToPLY(const CvGridMap &map,
}

}
}
}

0 comments on commit 91e1e71

Please sign in to comment.