OpenCV
3.0.0
Open Source Computer Vision
|
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... | |
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).
src | |
dst | |
algorithmType | see xphoto::WhitebalanceTypes |
inputMin | minimum value in the input image |
inputMax | maximum value in the input image |
outputMin | minimum value in the output image |
outputMax | maximum value in the output image |
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/.
src | source image |
dst | destination image |
sigma | expected noise standard deviation |
psize | size of block side where dct is computed |
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.
src | source 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. |
mask | mask (CV_8UC1), where non-zero pixels indicate valid image area, while zero pixels indicate area to be inpainted |
dst | destination image |
algorithmType | see xphoto::InpaintTypes |