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_);
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_