Point Cloud Library (PCL)
1.10.0
|
42 #include <pcl/point_cloud.h>
44 #include <pcl/common/boost.h>
45 #include <pcl/common/eigen.h>
47 #include <pcl/common/io.h>
49 #include <pcl/io/openni_camera/openni_shift_to_depth_conversion.h>
59 template<
typename Po
intT>
86 std::ostream& compressedDataOut_arg,
87 bool doColorEncoding =
false,
88 bool convertToMono =
false,
89 bool bShowStatistics_arg =
true,
90 int pngLevel_arg = -1);
108 std::vector<std::uint8_t>& colorImage_arg,
111 std::ostream& compressedDataOut_arg,
112 bool doColorEncoding =
false,
113 bool convertToMono =
false,
114 bool bShowStatistics_arg =
true,
115 int pngLevel_arg = -1,
116 float focalLength_arg = 525.0f,
117 float disparityShift_arg = 174.825f,
118 float disparityScale_arg = -0.161175f);
127 PointCloudPtr &cloud_arg,
128 bool bShowStatistics_arg =
true);
138 float& focalLength_arg)
const;
142 static const char* frameHeaderIdentifier_;
149 template<
typename Po
intT>
150 const char* OrganizedPointCloudCompression<PointT>::frameHeaderIdentifier_ =
"<PCL-ORG-COMPRESSED>";
Defines all the PCL and non-PCL macros used.
This file defines compatibility wrappers for low level I/O functions.
typename PointCloud::ConstPtr PointCloudConstPtr
PointCloud represents the base class in PCL for storing collections of 3D points.
bool decodePointCloud(std::istream &compressedDataIn_arg, PointCloudPtr &cloud_arg, bool bShowStatistics_arg=true)
Decode point cloud from input stream.
This class provides conversion of the openni 11-bit shift data to depth;.
void encodePointCloud(const PointCloudConstPtr &cloud_arg, std::ostream &compressedDataOut_arg, bool doColorEncoding=false, bool convertToMono=false, bool bShowStatistics_arg=true, int pngLevel_arg=-1)
Encode point cloud to output stream.
void encodeRawDisparityMapWithColorImage(std::vector< std::uint16_t > &disparityMap_arg, std::vector< std::uint8_t > &colorImage_arg, std::uint32_t width_arg, std::uint32_t height_arg, std::ostream &compressedDataOut_arg, bool doColorEncoding=false, bool convertToMono=false, bool bShowStatistics_arg=true, int pngLevel_arg=-1, float focalLength_arg=525.0f, float disparityShift_arg=174.825f, float disparityScale_arg=-0.161175f)
Encode raw disparity map and color image.
virtual ~OrganizedPointCloudCompression()
Empty deconstructor.
shared_ptr< PointCloud< PointT > > Ptr
typename PointCloud::Ptr PointCloudPtr
shared_ptr< const PointCloud< PointT > > ConstPtr
void analyzeOrganizedCloud(PointCloudConstPtr cloud_arg, float &maxDepth_arg, float &focalLength_arg) const
Analyze input point cloud and calculate the maximum depth and focal length.
OrganizedPointCloudCompression()
Empty Constructor.