97 float depth_scale = 1000.0);
108 bool deterministic_debug_mode_ =
false;
std::shared_ptr< core::Tensor > image
The Image class stores image with customizable rows, cols, channels, dtype and device.
DepthNoiseSimulator(const std::string &noise_model_path)
Constructor.
void EnableDeterministicDebugMode()
Enable deterministic debug mode. All normally distributed noise will be replaced by 0.
core::Tensor GetNoiseModel() const
Return the noise model.
geometry::Image Simulate(const geometry::Image &im_src, float depth_scale=1000.0)
Apply noise model to a depth image.
bool WriteImageToPNGInMemory(std::vector< uint8_t > &buffer, const t::geometry::Image &image, int quality)
bool ReadImageFromPNG(const std::string &filename, geometry::Image &image)
constexpr int kCloudViewerImageIODefaultQuality
bool ReadImage(const std::string &filename, geometry::Image &image)
bool WriteImageToPNG(const std::string &filename, const geometry::Image &image, int quality)
std::shared_ptr< geometry::Image > CreateImageFromFile(const std::string &filename)
bool WriteImage(const std::string &filename, const geometry::Image &image, int quality)
bool WriteImageToJPG(const std::string &filename, const geometry::Image &image, int quality)
bool ReadImageFromJPG(const std::string &filename, geometry::Image &image)
Generic file read and write utility for python interface.