Point Cloud Library (PCL)  1.10.1-dev
PCLImage.h
1 #pragma once
2 
3 #include <string> // for string
4 #include <vector> // for vector
5 #include <ostream> // for ostream
6 
7 #include <pcl/PCLHeader.h> // for PCLHeader
8 
9 namespace pcl
10 {
11  struct PCLImage
12  {
14 
15  std::uint32_t height = 0;
16  std::uint32_t width = 0;
17  std::string encoding;
18 
19  std::uint8_t is_bigendian = 0;
20  std::uint32_t step = 0;
21 
22  std::vector<std::uint8_t> data;
23 
26  }; // struct PCLImage
27 
30 
31  inline std::ostream& operator<<(std::ostream& s, const ::pcl::PCLImage & v)
32  {
33  s << "header: " << std::endl;
34  s << v.header;
35  s << "height: ";
36  s << " " << v.height << std::endl;
37  s << "width: ";
38  s << " " << v.width << std::endl;
39  s << "encoding: ";
40  s << " " << v.encoding << std::endl;
41  s << "is_bigendian: ";
42  s << " " << v.is_bigendian << std::endl;
43  s << "step: ";
44  s << " " << v.step << std::endl;
45  s << "data[]" << std::endl;
46  for (std::size_t i = 0; i < v.data.size (); ++i)
47  {
48  s << " data[" << i << "]: ";
49  s << " " << v.data[i] << std::endl;
50  }
51  return (s);
52  }
53 } // namespace pcl
shared_ptr< const ::pcl::PCLImage > ConstPtr
Definition: PCLImage.h:25
PCLImage::ConstPtr PCLImageConstPtr
Definition: PCLImage.h:29
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
std::uint32_t height
Definition: PCLImage.h:15
std::vector< std::uint8_t > data
Definition: PCLImage.h:22
std::uint32_t width
Definition: PCLImage.h:16
shared_ptr< ::pcl::PCLImage > Ptr
Definition: PCLImage.h:24
std::string encoding
Definition: PCLImage.h:17
::pcl::PCLHeader header
Definition: PCLImage.h:13
PCLImage::Ptr PCLImagePtr
Definition: PCLImage.h:28
std::uint8_t is_bigendian
Definition: PCLImage.h:19
boost::shared_ptr< T > shared_ptr
Alias for boost::shared_ptr.
Definition: memory.h:81
std::uint32_t step
Definition: PCLImage.h:20