Point Cloud Library (PCL)  1.10.0
PCLImage.h
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 #include <ostream>
6 
7 #ifdef USE_ROS
8  #error USE_ROS setup requires PCL to compile against ROS message headers, which is now deprecated
9 #endif
10 
11 // Include the correct Header path here
12 #include <pcl/PCLHeader.h>
13 
14 namespace pcl
15 {
16  struct PCLImage
17  {
19 
22  std::string encoding;
23 
26 
27  std::vector<std::uint8_t> data;
28 
31  }; // struct PCLImage
32 
35 
36  inline std::ostream& operator<<(std::ostream& s, const ::pcl::PCLImage & v)
37  {
38  s << "header: " << std::endl;
39  s << v.header;
40  s << "height: ";
41  s << " " << v.height << std::endl;
42  s << "width: ";
43  s << " " << v.width << std::endl;
44  s << "encoding: ";
45  s << " " << v.encoding << std::endl;
46  s << "is_bigendian: ";
47  s << " " << v.is_bigendian << std::endl;
48  s << "step: ";
49  s << " " << v.step << std::endl;
50  s << "data[]" << std::endl;
51  for (std::size_t i = 0; i < v.data.size (); ++i)
52  {
53  s << " data[" << i << "]: ";
54  s << " " << v.data[i] << std::endl;
55  }
56  return (s);
57  }
58 } // 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