20 const std::string &filename);
25 const unsigned char *image_data_ptr,
26 size_t image_data_size);
31 bool ReadImage(
const std::string &filename, geometry::Image &
image);
40 const unsigned char *image_data_ptr,
41 size_t image_data_size,
42 geometry::Image &
image);
74 size_t image_data_size,
78 size_t image_data_size,
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:183
filament::Texture::Format image_format
Definition: FilamentResourceManager.cpp:193
The Image class stores image with customizable width, height, num of channels and bytes per channel.
Definition: Image.h:34
std::shared_ptr< geometry::Image > CreateImageFromFile(const std::string &filename)
Definition: ImageIO.cpp:42
bool WriteImageToPNG(const std::string &filename, const geometry::Image &image, int quality)
Definition: FilePNG.cpp:72
constexpr int kOpen3DImageIODefaultQuality
Definition: ImageIO.h:44
std::shared_ptr< geometry::Image > CreateImageFromMemory(const std::string &image_format, const unsigned char *image_data_ptr, size_t image_data_size)
Factory function to create an image from memory.
Definition: ImageIO.cpp:86
bool WriteImageToJPG(const std::string &filename, const geometry::Image &image, int quality)
Definition: FileJPG.cpp:79
bool ReadImageFromJPG(const std::string &filename, geometry::Image &image)
Definition: FileJPG.cpp:21
bool ReadImageFromPNG(const std::string &filename, geometry::Image &image)
Definition: FilePNG.cpp:43
bool ReadJPGFromMemory(const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image)
Definition: FileJPG.cpp:137
bool ReadImageFromMemory(const std::string &image_format, const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image)
Definition: ImageIO.cpp:95
bool ReadImage(const std::string &filename, geometry::Image &image)
Definition: ImageIO.cpp:49
bool ReadPNGFromMemory(const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image)
The general entrance for reading an Image from memory.
Definition: FilePNG.cpp:100
bool WriteImage(const std::string &filename, const geometry::Image &image, int quality)
Definition: ImageIO.cpp:67
Definition: PinholeCameraIntrinsic.cpp:16