Point Cloud Library (PCL)
1.11.1-dev
|
39 #include <pcl/io/image_metadata_wrapper.h>
41 #include <pcl/pcl_config.h>
59 using Ptr = shared_ptr<Image>;
62 using Clock = std::chrono::high_resolution_clock;
63 using Timestamp = std::chrono::high_resolution_clock::time_point;
73 : wrapper_ (std::move(image_metadata))
74 , timestamp_ (
Clock::now ())
78 : wrapper_ (std::move(image_metadata))
96 isResizingSupported (
unsigned input_width,
unsigned input_height,
97 unsigned output_width,
unsigned output_height)
const = 0;
107 fillRGB (
unsigned width,
unsigned height,
unsigned char* rgb_buffer,
unsigned rgb_line_step = 0)
const = 0;
114 getEncoding ()
const = 0;
123 memcpy (rgb_buffer, wrapper_->getData (), wrapper_->getDataSize ());
134 fillGrayscale (
unsigned width,
unsigned height,
unsigned char* gray_buffer,
135 unsigned gray_line_step = 0)
const = 0;
143 return (wrapper_->getWidth ());
152 return (wrapper_->getHeight ());
162 return (wrapper_->getFrameID ());
172 return (wrapper_->getTimestamp ());
190 return (wrapper_->getData ());
197 return (wrapper_->getDataSize ());
204 return (getDataSize() / getHeight());
Defines all the PCL and non-PCL macros used.
Image(FrameWrapper::Ptr image_metadata)
shared_ptr< FrameWrapper > Ptr
virtual void fillRaw(unsigned char *rgb_buffer) const
fills a user given buffer with the raw values.
Timestamp getSystemTimestamp() const
std::chrono::high_resolution_clock::time_point Timestamp
Image(FrameWrapper::Ptr image_metadata, Timestamp time)
unsigned getFrameID() const
A structure representing RGB color information.
Image interface class providing an interface to fill a RGB or Grayscale image buffer.
unsigned getHeight() const
std::chrono::high_resolution_clock Clock
virtual ~Image()
virtual Destructor that never throws an exception.
FrameWrapper::Ptr wrapper_
shared_ptr< const Image > ConstPtr
unsigned getWidth() const
std::uint64_t getTimestamp() const
Defines functions, macros and traits for allocating and using memory.