Loading...
Searching...
No Matches
PCLImage.h
#pragma once
#include <string> // for string
#include <vector> // for vector
#include <ostream> // for ostream
#include <pcl/PCLHeader.h> // for PCLHeader
#include <pcl/types.h> //for index_t
namespace pcl
{
struct PCLImage
{
::pcl::PCLHeader header;
uindex_t height = 0;
uindex_t width = 0;
std::string encoding;
std::uint8_t is_bigendian = 0;
uindex_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
Definition convolution.h:46
pcl::operator<<
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
Definition bivariate_polynomial.hpp:238
pcl::PCLImagePtr
PCLImage::Ptr PCLImagePtr
Definition PCLImage.h:29
pcl::PCLImageConstPtr
PCLImage::ConstPtr PCLImageConstPtr
Definition PCLImage.h:30
pcl::uindex_t
detail::int_type_t< detail::index_type_size, false > uindex_t
Type used for an unsigned index in PCL.
Definition types.h:120
pcl::PCLHeader
Definition PCLHeader.h:11
pcl::PCLImage
Definition PCLImage.h:13
pcl::PCLImage::step
uindex_t step
Definition PCLImage.h:21
pcl::PCLImage::height
uindex_t height
Definition PCLImage.h:16
pcl::PCLImage::encoding
std::string encoding
Definition PCLImage.h:18
pcl::PCLImage::is_bigendian
std::uint8_t is_bigendian
Definition PCLImage.h:20
pcl::PCLImage::data
std::vector< std::uint8_t > data
Definition PCLImage.h:23
pcl::PCLImage::ConstPtr
shared_ptr< const ::pcl::PCLImage > ConstPtr
Definition PCLImage.h:26
pcl::PCLImage::width
uindex_t width
Definition PCLImage.h:17
pcl::PCLImage::Ptr
shared_ptr< ::pcl::PCLImage > Ptr
Definition PCLImage.h:25
pcl::PCLImage::header
::pcl::PCLHeader header
Definition PCLImage.h:14
types.h
Defines basic non-point types used by PCL.