Point Cloud Library (PCL)
1.11.0
|
39 #include <pcl/io/boost.h>
40 #include <pcl/io/image_metadata_wrapper.h>
42 #include <pcl/pcl_config.h>
60 using Ptr = shared_ptr<Image>;
63 using Clock = std::chrono::high_resolution_clock;
64 using Timestamp = std::chrono::high_resolution_clock::time_point;
74 : wrapper_ (std::move(image_metadata))
75 , timestamp_ (
Clock::now ())
79 : wrapper_ (std::move(image_metadata))
98 unsigned output_width,
unsigned output_height)
const = 0;
108 fillRGB (
unsigned width,
unsigned height,
unsigned char* rgb_buffer,
unsigned rgb_line_step = 0)
const = 0;
124 memcpy (rgb_buffer, wrapper_->getData (), wrapper_->getDataSize ());
136 unsigned gray_line_step = 0)
const = 0;
144 return (wrapper_->getWidth ());
153 return (wrapper_->getHeight ());
163 return (wrapper_->getFrameID ());
173 return (wrapper_->getTimestamp ());
191 return (wrapper_->getData ());
198 return (wrapper_->getDataSize ());
205 return (getDataSize() / getHeight());
Defines all the PCL and non-PCL macros used.
virtual void fillGrayscale(unsigned width, unsigned height, unsigned char *gray_buffer, unsigned gray_line_step=0) const =0
fills a user given buffer with the gray values, with an optional nearest-neighbor down sampling and a...
Image(FrameWrapper::Ptr image_metadata)
shared_ptr< FrameWrapper > Ptr
virtual Encoding getEncoding() const =0
returns the encoding of the native data.
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
virtual bool isResizingSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const =0
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
virtual void fillRGB(unsigned width, unsigned height, unsigned char *rgb_buffer, unsigned rgb_line_step=0) const =0
fills a user given buffer with the RGB values, with an optional nearest-neighbor down sampling and an...
Defines functions, macros and traits for allocating and using memory.