Point Cloud Library (PCL) 1.13.1
Loading...
Searching...
No Matches
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#include <pcl/types.h> //for index_t
9
10namespace pcl
11{
12 struct PCLImage
13 {
15
18 std::string encoding;
19
20 std::uint8_t is_bigendian = 0;
22
23 std::vector<std::uint8_t> data;
24
25 using Ptr = shared_ptr< ::pcl::PCLImage>;
26 using ConstPtr = shared_ptr<const ::pcl::PCLImage>;
27 }; // struct PCLImage
28
31
32 inline std::ostream& operator<<(std::ostream& s, const ::pcl::PCLImage & v)
33 {
34 s << "header: " << std::endl;
35 s << v.header;
36 s << "height: ";
37 s << " " << v.height << std::endl;
38 s << "width: ";
39 s << " " << v.width << std::endl;
40 s << "encoding: ";
41 s << " " << v.encoding << std::endl;
42 s << "is_bigendian: ";
43 s << " " << v.is_bigendian << std::endl;
44 s << "step: ";
45 s << " " << v.step << std::endl;
46 s << "data[]" << std::endl;
47 for (std::size_t i = 0; i < v.data.size (); ++i)
48 {
49 s << " data[" << i << "]: ";
50 s << " " << v.data[i] << std::endl;
51 }
52 return (s);
53 }
54} // namespace pcl
detail::int_type_t< detail::index_type_size, false > uindex_t
Type used for an unsigned index in PCL.
Definition types.h:120
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
PCLImage::ConstPtr PCLImageConstPtr
Definition PCLImage.h:30
PCLImage::Ptr PCLImagePtr
Definition PCLImage.h:29
uindex_t step
Definition PCLImage.h:21
uindex_t height
Definition PCLImage.h:16
std::string encoding
Definition PCLImage.h:18
std::uint8_t is_bigendian
Definition PCLImage.h:20
std::vector< std::uint8_t > data
Definition PCLImage.h:23
shared_ptr< const ::pcl::PCLImage > ConstPtr
Definition PCLImage.h:26
uindex_t width
Definition PCLImage.h:17
shared_ptr< ::pcl::PCLImage > Ptr
Definition PCLImage.h:25
::pcl::PCLHeader header
Definition PCLImage.h:14
Defines basic non-point types used by PCL.