Point Cloud Library (PCL)  1.10.0-dev
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 
20  std::uint32_t height = 0;
21  std::uint32_t width = 0;
22  std::string encoding;
23 
24  std::uint8_t is_bigendian = 0;
25  std::uint32_t step = 0;
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
shared_ptr< const ::pcl::PCLImage > ConstPtr
Definition: PCLImage.h:30
This file defines compatibility wrappers for low level I/O functions.
Definition: convolution.h:45
PCLImage::ConstPtr PCLImageConstPtr
Definition: PCLImage.h:34
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
std::uint32_t height
Definition: PCLImage.h:20
std::vector< std::uint8_t > data
Definition: PCLImage.h:27
std::uint32_t width
Definition: PCLImage.h:21
shared_ptr< ::pcl::PCLImage > Ptr
Definition: PCLImage.h:29
std::string encoding
Definition: PCLImage.h:22
::pcl::PCLHeader header
Definition: PCLImage.h:18
PCLImage::Ptr PCLImagePtr
Definition: PCLImage.h:33
std::uint8_t is_bigendian
Definition: PCLImage.h:24
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.
Definition: pcl_macros.h:90
std::uint32_t step
Definition: PCLImage.h:25