40 #include <pcl/pcl_macros.h>
41 #include <pcl/point_cloud.h>
97 readParameters (
const std::string &filename);
104 parameters_ = parameters;
133 return (image_type_identifier_);
150 loadImageBlob (
const std::string &filename,
151 std::vector<char> &data,
152 std::uint32_t &uncompressed_size);
160 decompress (
const std::vector<char> &input,
161 std::vector<char> &output);
164 std::uint32_t width_{0};
167 std::uint32_t height_{0};
201 template <
typename Po
intT>
bool
209 template <
typename Po
intT>
bool
211 unsigned int num_threads=0);
218 readParameters (std::istream& is)
override;
224 double z_multiplication_factor_{0.001};
251 template<
typename Po
intT>
bool
260 template <
typename Po
intT>
bool
262 unsigned int num_threads=0);
269 readParameters (std::istream& is)
override;
298 template<
typename Po
intT>
bool
307 template <
typename Po
intT>
bool
309 unsigned int num_threads=0);
336 template<
typename Po
intT>
bool
345 template <
typename Po
intT>
bool
347 unsigned int num_threads=0);
390 write (
const char* data,
391 std::uint32_t width, std::uint32_t height,
392 const std::string &filename) = 0;
401 const std::string &filename) = 0;
414 std::uint32_t width, std::uint32_t height,
416 const std::string &filename_data,
417 const std::string &filename_xml)
419 bool res1 =
write (data, width, height, filename_data);
420 bool res2 = writeParameters (parameters, filename_xml);
421 return (res1 && res2);
436 writeParameter (
const double ¶meter,
const std::string &tag,
437 const std::string &filename);
446 saveImageBlob (
const char* data, std::size_t data_size,
447 const std::string &filename);
461 compress (
const char* input, std::uint32_t input_size,
462 std::uint32_t width, std::uint32_t height,
463 const std::string &image_type,
494 write (
const char* data,
495 std::uint32_t width, std::uint32_t height,
496 const std::string &filename)
override;
512 const std::string &filename)
override;
518 double z_multiplication_factor_{0.001};
547 write (
const char *data,
548 std::uint32_t width, std::uint32_t height,
549 const std::string &filename)
override;
558 const std::string &filename)
override;
589 write (
const char *data,
590 std::uint32_t width, std::uint32_t height,
591 const std::string &filename)
override;
620 write (
const char *data,
621 std::uint32_t width, std::uint32_t height,
622 const std::string &filename)
override;
627 #include <pcl/io/impl/lzf_image_io.hpp>
PCL-LZF 24-bit RGB image format reader.
PCL-LZF 24-bit RGB image format writer.
PCL-LZF image format writer.
double principal_point_x
cx
PCL-LZF image format reader.
virtual bool write(const char *data, std::uint32_t width, std::uint32_t height, const CameraParameters ¶meters, const std::string &filename_data, const std::string &filename_xml)
Save an image and its camera parameters into PCL-LZF format.
PCL-LZF 16-bit depth image format writer.
bool readParameters(std::istream &is) override
Read camera parameters from a given stream and store them internally.
std::uint32_t getHeight() const
Get the image height as read from disk.
Basic camera parameters placeholder.
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
PCL-LZF 8-bit Bayer image format reader.
void setParameters(const CameraParameters ¶meters)
Read the parameters from a struct instead.
std::string image_type_identifier_
The image type string, as read from the file.
CameraParameters getParameters() const
Get the camera parameters currently being used returns a CameraParameters struct. ...
virtual bool readParameters(std::istream &)
Read camera parameters from a given stream and store them internally.
PCL-LZF 8-bit Bayer image format reader.
CameraParameters parameters_
Internal set of camera parameters.
PCL-LZF 16-bit YUV422 image format writer.
std::uint32_t getWidth() const
Get the image width as read from disk.
double principal_point_y
cy
PCL-LZF 16-bit depth image format reader.
PointCloud represents the base class in PCL for storing collections of 3D points. ...
bool readParameters(const std::string &filename)
Read camera parameters from a given file and store them internally.
void write(std::ostream &stream, Type value)
Function for writing data to a stream.
std::string getImageType() const
Get the type of the image read from disk.
PCL-LZF 8-bit Bayer image format writer.