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;
111 getParameters ()
const
132 getImageType ()
const
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_