27 const unsigned char *image_data_ptr,
28 size_t image_data_size);
43 const unsigned char *image_data_ptr,
44 size_t image_data_size,
71 size_t image_data_size,
87 size_t image_data_size,
std::shared_ptr< core::Tensor > image
filament::Texture::Format image_format
The Image class stores image with customizable width, height, num of channels and bytes per channel.
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.
bool WriteImage(const std::string &filename, const geometry::Image &image, int quality=kCloudViewerImageIODefaultQuality)
bool ReadImageFromJPG(const std::string &filename, geometry::Image &image)
constexpr int kCloudViewerImageIODefaultQuality
bool ReadJPGFromMemory(const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image)
bool ReadImageFromPNG(const std::string &filename, geometry::Image &image)
bool ReadPNGFromMemory(const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image)
std::shared_ptr< geometry::Image > CreateImageFromFile(const std::string &filename)
bool ReadImage(const std::string &filename, geometry::Image &image)
bool WriteImageToPNG(const std::string &filename, const geometry::Image &image, int quality=kCloudViewerImageIODefaultQuality)
bool ReadImageFromMemory(const std::string &image_format, const unsigned char *image_data_ptr, size_t image_data_size, geometry::Image &image)
bool WriteImageToJPG(const std::string &filename, const geometry::Image &image, int quality=kCloudViewerImageIODefaultQuality)
Generic file read and write utility for python interface.