8 #ifndef SE_IMAGE_UTILS_HPP 9 #define SE_IMAGE_UTILS_HPP 11 #include <Eigen/Dense> 33 const Eigen::Vector2i& depth_image_res,
34 const std::string& filename,
35 const float scale = 1000.0f);
49 const Eigen::Vector2i& depth_image_res,
50 const std::string& filename);
73 Eigen::Vector2i& depth_image_res,
74 const std::string& filename,
75 const float inverse_scale = 1.0f / 1000.0f);
93 Eigen::Vector2i& depth_image_res,
94 const std::string& filename);
116 const Eigen::Vector2i& depth_image_res,
117 const std::string& filename,
118 const float scale = 1000.0f);
135 const Eigen::Vector2i& depth_image_res,
136 const std::string& filename);
159 Eigen::Vector2i& depth_image_res,
160 const std::string& filename,
161 const float inverse_scale = 1.0f / 1000.0f);
179 Eigen::Vector2i& depth_image_res,
180 const std::string& filename);
184 static inline Eigen::Vector2i
round_pixel(
const Eigen::Vector2f& pixel_f);
188 #include "impl/image_utils_impl.hpp" 190 #endif // SE_IMAGE_UTILS_HPP int load_depth_pgm(float **depth_image_data, Eigen::Vector2i &depth_image_res, const std::string &filename, const float inverse_scale=1.0f/1000.0f)
Load a P2 PGM depth image into a buffer with depth values in metres.
int save_depth_pgm(const float *depth_image_data, const Eigen::Vector2i &depth_image_res, const std::string &filename, const float scale=1000.0f)
Save a depth image with depth values in metres to a P2 PGM.
static Eigen::Vector2i round_pixel(const Eigen::Vector2f &pixel_f)
int save_depth_png(const float *depth_image_data, const Eigen::Vector2i &depth_image_res, const std::string &filename, const float scale=1000.0f)
Save a depth image with depth values in metres to a PNG.
int load_depth_png(float **depth_image_data, Eigen::Vector2i &depth_image_res, const std::string &filename, const float inverse_scale=1.0f/1000.0f)
Load a PNG depth image into a buffer with depth values in metres.
Helper wrapper to allocate and de-allocate octants in the octree.
Definition: colour_utils.hpp:17
static const std::vector< Eigen::Vector3f, Eigen::aligned_allocator< Eigen::Vector3f > > scale
The colours used for the various integration scales.
Definition: colour_utils.hpp:22