OpenCV  3.0.0
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Enumerations | Functions
Additional photo processing algorithms

Enumerations

enum  cv::xphoto::InpaintTypes { cv::xphoto::INPAINT_SHIFTMAP = 0 }
 various inpainting algorithms More...
 
enum  cv::xphoto::WhitebalanceTypes {
  cv::xphoto::WHITE_BALANCE_SIMPLE = 0,
  cv::xphoto::WHITE_BALANCE_GRAYWORLD = 1
}
 various white balance algorithms More...
 

Functions

void cv::xphoto::balanceWhite (const Mat &src, Mat &dst, const int algorithmType, const float inputMin=0.0f, const float inputMax=255.0f, const float outputMin=0.0f, const float outputMax=255.0f)
 The function implements different algorithm of automatic white balance,. More...
 
void cv::xphoto::dctDenoising (const Mat &src, Mat &dst, const double sigma, const int psize=16)
 The function implements simple dct-based denoising. More...
 
void cv::xphoto::inpaint (const Mat &src, const Mat &mask, Mat &dst, const int algorithmType)
 The function implements different single-image inpainting algorithms. More...
 

Detailed Description

Enumeration Type Documentation

various inpainting algorithms

Enumerator
INPAINT_SHIFTMAP 

This algorithm searches for dominant correspondences (transformations) of image patches and tries to seamlessly fill-in the area to be inpainted using this transformations

various white balance algorithms

Enumerator
WHITE_BALANCE_SIMPLE 

perform smart histogram adjustments (ignoring 4% pixels with minimal and maximal values) for each channel

WHITE_BALANCE_GRAYWORLD 

Function Documentation

void cv::xphoto::balanceWhite ( const Mat &  src,
Mat &  dst,
const int  algorithmType,
const float  inputMin = 0.0f,
const float  inputMax = 255.0f,
const float  outputMin = 0.0f,
const float  outputMax = 255.0f 
)

The function implements different algorithm of automatic white balance,.

i.e. it tries to map image's white color to perceptual white (this can be violated due to specific illumination or camera settings).

Parameters
src
dst
algorithmTypesee xphoto::WhitebalanceTypes
inputMinminimum value in the input image
inputMaxmaximum value in the input image
outputMinminimum value in the output image
outputMaxmaximum value in the output image
See also
cvtColor, equalizeHist
void cv::xphoto::dctDenoising ( const Mat &  src,
Mat &  dst,
const double  sigma,
const int  psize = 16 
)

The function implements simple dct-based denoising.

http://www.ipol.im/pub/art/2011/ys-dct/.

Parameters
srcsource image
dstdestination image
sigmaexpected noise standard deviation
psizesize of block side where dct is computed
See also
fastNlMeansDenoising
void cv::xphoto::inpaint ( const Mat &  src,
const Mat &  mask,
Mat &  dst,
const int  algorithmType 
)

The function implements different single-image inpainting algorithms.

See the original paper [58] for details.

Parameters
srcsource image, it could be of any type and any number of channels from 1 to 4. In case of 3- and 4-channels images the function expect them in CIELab colorspace or similar one, where first color component shows intensity, while second and third shows colors. Nonetheless you can try any colorspaces.
maskmask (CV_8UC1), where non-zero pixels indicate valid image area, while zero pixels indicate area to be inpainted
dstdestination image
algorithmTypesee xphoto::InpaintTypes