39#ifndef _vpImageIoBackend_h_
40#define _vpImageIoBackend_h_
42#include <visp3/core/vpImage.h>
49void vp_writePFM(
const vpImage<float> &I,
const std::string &filename);
50void vp_writePFM_HDR(
const vpImage<float> &I,
const std::string &filename);
51void vp_writePFM_HDR(
const vpImage<vpRGBf> &I,
const std::string &filename);
53void vp_writePGM(
const vpImage<short> &I,
const std::string &filename);
56void vp_readPFM_HDR(
vpImage<float> &I,
const std::string &filename);
70void writeJPEGLibjpeg(
const vpImage<vpRGBa> &I,
const std::string &filename,
int quality);
77void writePNGLibpng(
const vpImage<vpRGBa> &I,
const std::string &filename);
79#if defined(VISP_HAVE_OPENCV) && \
80 (((VISP_HAVE_OPENCV_VERSION >= 0x030000) && defined(HAVE_OPENCV_IMGCODECS)) || \
81 ((VISP_HAVE_OPENCV_VERSION < 0x030000) && defined(HAVE_OPENCV_HIGHGUI) && defined(HAVE_OPENCV_IMGPROC)))
89void writeOpenCV(
const vpImage<vpRGBa> &I,
const std::string &filename,
int quality);
90void writeOpenCV(
const vpImage<float> &I,
const std::string &filename);
94void readPNGfromMemOpenCV(
const std::vector<unsigned char> &buffer,
vpImage<vpRGBa> &I);
97void writePNGtoMemOpenCV(
const vpImage<vpRGBa> &I, std::vector<unsigned char> &buffer,
bool saveAlpha);
100#if defined(VISP_HAVE_SIMDLIB)
106void writeJPEGSimdlib(
const vpImage<vpRGBa> &I,
const std::string &filename,
int quality);
109void writePNGSimdlib(
const vpImage<vpRGBa> &I,
const std::string &filename);
112#if defined(VISP_HAVE_TINYEXR)
117void writeEXRTiny(
const vpImage<float> &I,
const std::string &filename);
118void writeEXRTiny(
const vpImage<vpRGBf> &I,
const std::string &filename);
121#if defined(VISP_HAVE_STBIMAGE)
127void writeJPEGStb(
const vpImage<vpRGBa> &I,
const std::string &filename,
int quality);
130void writePNGStb(
const vpImage<vpRGBa> &I,
const std::string &filename);
133void readPNGfromMemStb(
const std::vector<unsigned char> &buffer,
vpImage<vpRGBa> &I);
136void writePNGtoMemStb(
const vpImage<vpRGBa> &I, std::vector<unsigned char> &buffer,
bool saveAlpha);
Definition of the vpImage class member functions.