OpenCV  3.0.0-rc1
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Enumerations | Functions
imgcodecs.hpp File Reference
#include "opencv2/core.hpp"

Namespaces

 cv
 

Enumerations

enum  {
  cv::IMREAD_UNCHANGED = -1,
  cv::IMREAD_GRAYSCALE = 0,
  cv::IMREAD_COLOR = 1,
  cv::IMREAD_ANYDEPTH = 2,
  cv::IMREAD_ANYCOLOR = 4,
  cv::IMREAD_LOAD_GDAL = 8
}
 
enum  {
  cv::IMWRITE_JPEG_QUALITY = 1,
  cv::IMWRITE_JPEG_PROGRESSIVE = 2,
  cv::IMWRITE_JPEG_OPTIMIZE = 3,
  cv::IMWRITE_JPEG_RST_INTERVAL = 4,
  cv::IMWRITE_JPEG_LUMA_QUALITY = 5,
  cv::IMWRITE_JPEG_CHROMA_QUALITY = 6,
  cv::IMWRITE_PNG_COMPRESSION = 16,
  cv::IMWRITE_PNG_STRATEGY = 17,
  cv::IMWRITE_PNG_BILEVEL = 18,
  cv::IMWRITE_PXM_BINARY = 32,
  cv::IMWRITE_WEBP_QUALITY = 64
}
 
enum  {
  cv::IMWRITE_PNG_STRATEGY_DEFAULT = 0,
  cv::IMWRITE_PNG_STRATEGY_FILTERED = 1,
  cv::IMWRITE_PNG_STRATEGY_HUFFMAN_ONLY = 2,
  cv::IMWRITE_PNG_STRATEGY_RLE = 3,
  cv::IMWRITE_PNG_STRATEGY_FIXED = 4
}
 

Functions

Mat cv::imdecode (InputArray buf, int flags)
 
Mat cv::imdecode (InputArray buf, int flags, Mat *dst)
 Reads an image from a buffer in memory. More...
 
bool cv::imencode (const String &ext, InputArray img, std::vector< uchar > &buf, const std::vector< int > &params=std::vector< int >())
 Encodes an image into a memory buffer. More...
 
Mat cv::imread (const String &filename, int flags=IMREAD_COLOR)
 Loads an image from a file. More...
 
bool cv::imreadmulti (const String &filename, std::vector< Mat > &mats, int flags=IMREAD_ANYCOLOR)
 Loads a multi-page image from a file. (see imread for details.) More...
 
bool cv::imwrite (const String &filename, InputArray img, const std::vector< int > &params=std::vector< int >())
 Saves an image to a specified file. More...