38 #ifndef PCL_LZF_IMAGE_IO_H_
39 #define PCL_LZF_IMAGE_IO_H_
41 #include <pcl/pcl_macros.h>
42 #include <pcl/point_cloud.h>
98 readParameters (
const std::string &filename);
105 parameters_ = parameters;
134 return (image_type_identifier_);
150 loadImageBlob (
const std::string &filename,
151 std::vector<char> &data,
152 uint32_t &uncompressed_size);
160 decompress (
const std::vector<char> &input,
161 std::vector<char> &output);
194 , z_multiplication_factor_ (0.001)
204 template <
typename Po
intT>
bool
212 template <
typename Po
intT>
bool
214 unsigned int num_threads=0);
221 readParameters (std::istream& is);
254 template<
typename Po
intT>
bool
263 template <
typename Po
intT>
bool
265 unsigned int num_threads=0);
272 readParameters (std::istream& is);
301 template<
typename Po
intT>
bool
310 template <
typename Po
intT>
bool
312 unsigned int num_threads=0);
339 template<
typename Po
intT>
bool
348 template <
typename Po
intT>
bool
350 unsigned int num_threads=0);
393 write (
const char* data,
394 uint32_t width, uint32_t height,
395 const std::string &filename) = 0;
404 const std::string &filename) = 0;
417 uint32_t width, uint32_t height,
419 const std::string &filename_data,
420 const std::string &filename_xml)
422 bool res1 =
write (data, width, height, filename_data);
423 bool res2 = writeParameters (parameters, filename_xml);
424 return (res1 && res2);
439 writeParameter (
const double ¶meter,
const std::string &tag,
440 const std::string &filename);
449 saveImageBlob (
const char* data,
size_t data_size,
450 const std::string &filename);
464 compress (
const char* input, uint32_t input_size,
465 uint32_t width, uint32_t height,
466 const std::string &image_type,
486 , z_multiplication_factor_ (0.001)
500 write (
const char* data,
501 uint32_t width, uint32_t height,
502 const std::string &filename);
518 const std::string &filename);
553 write (
const char *data,
554 uint32_t width, uint32_t height,
555 const std::string &filename);
564 const std::string &filename);
595 write (
const char *data,
596 uint32_t width, uint32_t height,
597 const std::string &filename);
626 write (
const char *data,
627 uint32_t width, uint32_t height,
628 const std::string &filename);
633 #include <pcl/io/impl/lzf_image_io.hpp>
635 #endif //#ifndef PCL_LZF_IMAGE_IO_H_
LZFRGB24ImageReader()
Empty constructor.
std::string getImageType() const
Get the type of the image read from disk.
double z_multiplication_factor_
Z-value depth multiplication factor (i.e., if raw data is in [mm] and we want [m], we need to multiply with 0.001)
double principal_point_x
cx
bool readParameters(const std::string &filename)
Read camera parameters from a given file and store them internally.
virtual bool readParameters(std::istream &is)
Read camera parameters from a given stream and store them internally.
PCL-LZF 8-bit Bayer image format writer.
virtual ~LZFRGB24ImageWriter()
Empty destructor.
virtual ~LZFBayer8ImageWriter()
Empty destructor.
PCL-LZF image format reader.
virtual bool write(const char *data, uint32_t width, 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 YUV422 image format writer.
virtual bool readParameters(std::istream &)
Read camera parameters from a given stream and store them internally.
void setParameters(const CameraParameters ¶meters)
Read the parameters from a struct instead.
virtual ~LZFDepth16ImageReader()
Empty destructor.
double z_multiplication_factor_
Z-value depth multiplication factor (i.e., if raw data is in [mm] and we want [m], we need to multiply with 0.001)
virtual ~LZFImageWriter()
Empty destructor.
LZFImageWriter()
Empty constructor.
Basic camera parameters placeholder.
LZFBayer8ImageReader()
Empty constructor.
double principal_point_y
cy
virtual ~LZFRGB24ImageReader()
Empty destructor.
std::string image_type_identifier_
The image type string, as read from the file.
CameraParameters parameters_
Internal set of camera parameters.
CameraParameters getParameters() const
Get the camera parameters currently being used returns a CameraParameters struct. ...
LZFRGB24ImageWriter()
Empty constructor.
uint32_t getHeight() const
Get the image height as read from disk.
virtual ~LZFYUV422ImageWriter()
Empty destructor.
PCL-LZF 8-bit Bayer image format reader.
void write(std::ostream &stream, Type value)
Function for writing data to a stream.
PCL-LZF 16-bit depth image format writer.
uint32_t height_
The image height, as read from the file.
LZFYUV422ImageWriter()
Empty constructor.
PCL-LZF 8-bit Bayer image format reader.
LZFYUV422ImageReader()
Empty constructor.
PCL-LZF 24-bit RGB image format reader.
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
virtual ~LZFImageReader()
Empty destructor.
LZFDepth16ImageReader()
Empty constructor.
virtual ~LZFDepth16ImageWriter()
Empty destructor.
uint32_t width_
The image width, as read from the file.
PCL-LZF 24-bit RGB image format writer.
LZFBayer8ImageWriter()
Empty constructor.
~LZFYUV422ImageReader()
Empty destructor.
PCL-LZF image format writer.
uint32_t getWidth() const
Get the image width as read from disk.
LZFDepth16ImageWriter()
Empty constructor.
PCL-LZF 16-bit depth image format reader.
~LZFBayer8ImageReader()
Empty destructor.