8#ifndef SE_IMAGE_UTILS_HPP
9#define SE_IMAGE_UTILS_HPP
35 const float scale = 1000.0f);
75 const float inverse_scale = 1.0f / 1000.0f);
118 const float scale = 1000.0f);
161 const float inverse_scale = 1.0f / 1000.0f);
188#include "impl/image_utils_impl.hpp"
Helper wrapper to allocate and de-allocate octants in the octree.
Definition bounded_vector.hpp:14
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 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 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 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.