47 #include <visp3/core/vpImage.h> 48 #include <visp3/core/vpDebug.h> 49 #include <visp3/core/vpRGBa.h> 50 #include <visp3/core/vpImageConvert.h> 59 #if defined(VISP_HAVE_JPEG) 64 #if defined(VISP_HAVE_PNG) 137 static vpImageFormatType getFormat(
const std::string &filename) ;
138 static std::string getExtension(
const std::string &filename);
146 static void write(
const vpImage<vpRGBa> &I,
const std::string &filename) ;
148 static void readPFM(
vpImage<float> &I,
const std::string &filename) ;
156 #if (defined(VISP_HAVE_JPEG) || defined(VISP_HAVE_OPENCV)) 158 static void readJPEG(
vpImage<vpRGBa> &I,
const std::string &filename) ;
161 #if (defined(VISP_HAVE_PNG) || defined(VISP_HAVE_OPENCV)) 166 static void writePFM(
const vpImage<float> &I,
const std::string &filename) ;
169 static void writePGM(
const vpImage<short> &I,
const std::string &filename) ;
170 static void writePGM(
const vpImage<vpRGBa> &I,
const std::string &filename) ;
173 static void writePPM(
const vpImage<vpRGBa> &I,
const std::string &filename) ;
175 #if (defined(VISP_HAVE_JPEG) || defined(VISP_HAVE_OPENCV)) 177 static void writeJPEG(
const vpImage<vpRGBa> &I,
const std::string &filename) ;
180 #if (defined(VISP_HAVE_PNG) || defined(VISP_HAVE_OPENCV)) 182 static void writePNG(
const vpImage<vpRGBa> &I,
const std::string &filename) ;
Read/write images with various image format.