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_);
151 loadImageBlob (
const std::string &filename,
152 std::vector<char> &data,
153 uint32_t &uncompressed_size);
161 decompress (
const std::vector<char> &input,
162 std::vector<char> &output);
195 , z_multiplication_factor_ (0.001)
205 template <
typename Po
intT>
bool 213 template <
typename Po
intT>
bool 215 unsigned int num_threads=0);
222 readParameters (std::istream& is);
255 template<
typename Po
intT>
bool 264 template <
typename Po
intT>
bool 266 unsigned int num_threads=0);
273 readParameters (std::istream& is);
302 template<
typename Po
intT>
bool 311 template <
typename Po
intT>
bool 313 unsigned int num_threads=0);
340 template<
typename Po
intT>
bool 349 template <
typename Po
intT>
bool 351 unsigned int num_threads=0);
394 write (
const char* data,
395 uint32_t width, uint32_t height,
396 const std::string &filename) = 0;
405 const std::string &filename) = 0;
418 uint32_t width, uint32_t height,
420 const std::string &filename_data,
421 const std::string &filename_xml)
423 bool res1 =
write (data, width, height, filename_data);
424 bool res2 = writeParameters (parameters, filename_xml);
425 return (res1 && res2);
440 writeParameter (
const double ¶meter,
const std::string &tag,
441 const std::string &filename);
450 saveImageBlob (
const char* data,
size_t data_size,
451 const std::string &filename);
465 compress (
const char* input, uint32_t input_size,
466 uint32_t width, uint32_t height,
467 const std::string &image_type,
487 , z_multiplication_factor_ (0.001)
501 write (
const char* data,
502 uint32_t width, uint32_t height,
503 const std::string &filename);
519 const std::string &filename);
554 write (
const char *data,
555 uint32_t width, uint32_t height,
556 const std::string &filename);
565 const std::string &filename);
596 write (
const char *data,
597 uint32_t width, uint32_t height,
598 const std::string &filename);
627 write (
const char *data,
628 uint32_t width, uint32_t height,
629 const std::string &filename);
634 #include <pcl/io/impl/lzf_image_io.hpp> 636 #endif //#ifndef PCL_LZF_IMAGE_IO_H_ 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.
~LZFBayer8ImageReader()
Empty destructor.
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.
double z_multiplication_factor_
Z-value depth multiplication factor (i.e., if raw data is in [mm] and we want [m],...
PCL-LZF 16-bit depth image format writer.
LZFRGB24ImageReader()
Empty constructor.
Basic camera parameters placeholder.
LZFDepth16ImageWriter()
Empty constructor.
void read(std::istream &stream, Type &value)
Function for reading data from a stream.
virtual ~LZFImageReader()
Empty destructor.
PCL-LZF 8-bit Bayer image format reader.
virtual ~LZFRGB24ImageWriter()
Empty destructor.
uint32_t getWidth() const
Get the image width as read from disk.
void setParameters(const CameraParameters ¶meters)
Read the parameters from a struct instead.
~LZFYUV422ImageReader()
Empty destructor.
std::string image_type_identifier_
The image type string, as read from the file.
virtual ~LZFBayer8ImageWriter()
Empty destructor.
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.
LZFDepth16ImageReader()
Empty constructor.
PCL-LZF 16-bit YUV422 image format writer.
virtual ~LZFYUV422ImageWriter()
Empty destructor.
double principal_point_y
cy
virtual ~LZFDepth16ImageWriter()
Empty destructor.
PCL-LZF 16-bit depth image format reader.
std::string getImageType() const
Get the type of the image read from disk.
PointCloud represents the base class in PCL for storing collections of 3D points.
virtual ~LZFRGB24ImageReader()
Empty destructor.
virtual bool readParameters(std::istream &is)
Read camera parameters from a given stream and store them internally.
virtual ~LZFImageWriter()
Empty destructor.
bool readParameters(const std::string &filename)
Read camera parameters from a given file and store them internally.
CameraParameters getParameters() const
Get the camera parameters currently being used returns a CameraParameters struct.
void write(std::ostream &stream, Type value)
Function for writing data to a stream.
LZFYUV422ImageWriter()
Empty constructor.
uint32_t width_
The image width, as read from the file.
virtual ~LZFDepth16ImageReader()
Empty destructor.
uint32_t height_
The image height, as read from the file.
double z_multiplication_factor_
Z-value depth multiplication factor (i.e., if raw data is in [mm] and we want [m],...
LZFRGB24ImageWriter()
Empty constructor.
LZFBayer8ImageWriter()
Empty constructor.
uint32_t getHeight() const
Get the image height as read from disk.
LZFImageWriter()
Empty constructor.
LZFYUV422ImageReader()
Empty constructor.
LZFBayer8ImageReader()
Empty constructor.
PCL-LZF 8-bit Bayer image format writer.