Skip to content

Commit

Permalink
Added flag to paint NaNs as black
Browse files Browse the repository at this point in the history
  • Loading branch information
jpapon committed Oct 2, 2014
1 parent 6b270e2 commit 46cd0e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/segmentation/example_supervoxels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ main (int argc, char ** argv)
pcl::io::savePNGFile (refined_out_label_path, *refined_full_labeled_cloud, "label");
//Save RGB from labels
pcl::io::PointCloudImageExtractorFromLabelField<PointLT> pcie (pcie.io::PointCloudImageExtractorFromLabelField<PointLT>::COLORS_RGB_GLASBEY);
//We need to set this to account for NAN points in the organized cloud
pcie.setPaintNaNsWithBlack (true);
pcl::PCLImage image;
pcie.extract (*full_labeled_cloud, image);
pcl::io::savePNGFile (out_path, image);
Expand Down

0 comments on commit 46cd0e5

Please sign in to comment.