47 #include <visp3/core/vpDebug.h> 48 #include <visp3/core/vpImage.h> 49 #include <visp3/core/vpImageConvert.h> 50 #include <visp3/core/vpRGBa.h> 62 #if defined(VISP_HAVE_JPEG) 67 #if defined(VISP_HAVE_PNG) 139 static vpImageFormatType getFormat(
const std::string &filename);
140 static std::string getExtension(
const std::string &filename);
147 static void write(
const vpImage<vpRGBa> &I,
const std::string &filename);
149 static void readPFM(
vpImage<float> &I,
const std::string &filename);
157 #if (defined(VISP_HAVE_JPEG) || defined(VISP_HAVE_OPENCV)) 162 #if (defined(VISP_HAVE_PNG) || defined(VISP_HAVE_OPENCV)) 167 static void writePFM(
const vpImage<float> &I,
const std::string &filename);
170 static void writePGM(
const vpImage<short> &I,
const std::string &filename);
171 static void writePGM(
const vpImage<vpRGBa> &I,
const std::string &filename);
174 static void writePPM(
const vpImage<vpRGBa> &I,
const std::string &filename);
176 #if (defined(VISP_HAVE_JPEG) || defined(VISP_HAVE_OPENCV)) 178 static void writeJPEG(
const vpImage<vpRGBa> &I,
const std::string &filename);
181 #if (defined(VISP_HAVE_PNG) || defined(VISP_HAVE_OPENCV)) 183 static void writePNG(
const vpImage<vpRGBa> &I,
const std::string &filename);
Read/write images with various image format.