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);
77 size_t image_data_size,
85 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:40
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:91
bool WriteImageToJPG(const std::string &filename, const geometry::Image &image, int quality)
Definition: FileJPG.cpp:107
bool ReadImageFromJPG(const std::string &filename, geometry::Image &image)
Definition: FileJPG.cpp:38
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:172
bool ReadImageFromMemory(const std::string &image_format, const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image)
Definition: ImageIO.cpp:100
bool ReadImage(const std::string &filename, geometry::Image &image)
Definition: ImageIO.cpp:47
bool ReadPNGFromMemory(const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image)
Definition: FilePNG.cpp:100
bool WriteImage(const std::string &filename, const geometry::Image &image, int quality)
Definition: ImageIO.cpp:71
Definition: PinholeCameraIntrinsic.cpp:16