42 #include <pcl/point_cloud.h>
44 #include <pcl/io/openni_camera/openni_shift_to_depth_conversion.h>
54 template<
typename Po
intT>
77 std::ostream& compressedDataOut_arg,
78 bool doColorEncoding =
false,
79 bool convertToMono =
false,
80 bool bShowStatistics_arg =
true,
81 int pngLevel_arg = -1);
99 std::vector<std::uint8_t>& colorImage_arg,
100 std::uint32_t width_arg,
101 std::uint32_t height_arg,
102 std::ostream& compressedDataOut_arg,
103 bool doColorEncoding =
false,
104 bool convertToMono =
false,
105 bool bShowStatistics_arg =
true,
106 int pngLevel_arg = -1,
107 float focalLength_arg = 525.0f,
108 float disparityShift_arg = 174.825f,
109 float disparityScale_arg = -0.161175f);
119 bool bShowStatistics_arg =
true);
129 float& focalLength_arg)
const;
133 static const char* frameHeaderIdentifier_;
140 template<
typename Po
intT>
This class provides conversion of the openni 11-bit shift data to depth;.
PointCloud represents the base class in PCL for storing collections of 3D points.
shared_ptr< PointCloud< PointT > > Ptr
shared_ptr< const PointCloud< PointT > > ConstPtr
typename PointCloud::Ptr PointCloudPtr
virtual ~OrganizedPointCloudCompression()=default
Empty deconstructor.
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.
OrganizedPointCloudCompression()=default
Empty Constructor.
bool decodePointCloud(std::istream &compressedDataIn_arg, PointCloudPtr &cloud_arg, bool bShowStatistics_arg=true)
Decode point cloud from input stream.
void analyzeOrganizedCloud(PointCloudConstPtr cloud_arg, float &maxDepth_arg, float &focalLength_arg) const
Analyze input point cloud and calculate the maximum depth and focal length.
typename PointCloud::ConstPtr PointCloudConstPtr
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.
Defines all the PCL and non-PCL macros used.