PCLImage.h
#pragma once
#include <string>
#include <vector>
#include <ostream>
#ifdef USE_ROS
#error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
#endif
// Include the correct Header path here
#include <pcl/PCLHeader.h>
namespace pcl
{
struct PCLImage
{
::pcl::PCLHeader header;
std::uint32_t height = 0;
std::uint32_t width = 0;
std::string encoding;
std::uint8_t is_bigendian = 0;
std::uint32_t step = 0;
std::vector<std::uint8_t> data;
using Ptr = shared_ptr< ::pcl::PCLImage>;
using ConstPtr = shared_ptr<const ::pcl::PCLImage>;
}; // struct PCLImage
using PCLImagePtr = PCLImage::Ptr;
using PCLImageConstPtr = PCLImage::ConstPtr;
inline std::ostream& operator<<(std::ostream& s, const ::pcl::PCLImage & v)
{
s << "header: " << std::endl;
s << v.header;
s << "height: ";
s << " " << v.height << std::endl;
s << "width: ";
s << " " << v.width << std::endl;
s << "encoding: ";
s << " " << v.encoding << std::endl;
s << "is_bigendian: ";
s << " " << v.is_bigendian << std::endl;
s << "step: ";
s << " " << v.step << std::endl;
s << "data[]" << std::endl;
for (std::size_t i = 0; i < v.data.size (); ++i)
{
s << " data[" << i << "]: ";
s << " " << v.data[i] << std::endl;
}
return (s);
}
} // namespace pcl
pcl
This file defines compatibility wrappers for low level I/O functions.
Definition: convolution.h:45
pcl::PCLImage::data
std::vector< std::uint8_t > data
Definition: PCLImage.h:27
pcl::PCLImage::encoding
std::string encoding
Definition: PCLImage.h:22
pcl::uint32_t
std::uint32_t uint32_t
Definition: pcl_macros.h:96
pcl::PCLImageConstPtr
PCLImage::ConstPtr PCLImageConstPtr
Definition: PCLImage.h:34
pcl::PCLImage::is_bigendian
std::uint8_t is_bigendian
Definition: PCLImage.h:24
pcl::PCLImage::Ptr
shared_ptr< ::pcl::PCLImage > Ptr
Definition: PCLImage.h:29
pcl::PCLImage::header
::pcl::PCLHeader header
Definition: PCLImage.h:18
pcl::PCLImage::width
std::uint32_t width
Definition: PCLImage.h:21
pcl::operator<<
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
Definition: bivariate_polynomial.hpp:229
pcl::PCLImage::step
std::uint32_t step
Definition: PCLImage.h:25
pcl::PCLImage::ConstPtr
shared_ptr< const ::pcl::PCLImage > ConstPtr
Definition: PCLImage.h:30
pcl::PCLImage
Definition: PCLImage.h:16
pcl::uint8_t
std::uint8_t uint8_t
Definition: pcl_macros.h:92
pcl::PCLImagePtr
PCLImage::Ptr PCLImagePtr
Definition: PCLImage.h:33
pcl::PCLHeader
Definition: PCLHeader.h:15
pcl::PCLImage::height
std::uint32_t height
Definition: PCLImage.h:20
pcl::shared_ptr
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.
Definition: pcl_macros.h:90