Class cv::xphoto::SimpleWB#

A simple white balance algorithm that works by independently stretching each of the input image channels to the specified range. For increased robustness it ignores the top and bottom $p\%$ of pixel values.

Collaboration diagram for cv::xphoto::SimpleWB:

Public Member Functions#

Public Member Functions inherited from cv::xphoto::WhiteBalancer

Return

Name

Description

void

balanceWhite(
    InputArray src,
    OutputArray dst )

Applies white balancing to the input image.

Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

Detailed Description#

A simple white balance algorithm that works by independently stretching each of the input image channels to the specified range. For increased robustness it ignores the top and bottom \(p\%\) of pixel values.

Member Function Documentation#

getInputMax()#

float cv::xphoto::SimpleWB::getInputMax()

Python:

cv.xphoto.SimpleWB.getInputMax() -> retval

Input image range maximum value.

See also

setInputMax

getInputMin()#

float cv::xphoto::SimpleWB::getInputMin()

Python:

cv.xphoto.SimpleWB.getInputMin() -> retval

Input image range minimum value.

See also

setInputMin

getOutputMax()#

float cv::xphoto::SimpleWB::getOutputMax()

Python:

cv.xphoto.SimpleWB.getOutputMax() -> retval

Output image range maximum value.

See also

setOutputMax

getOutputMin()#

float cv::xphoto::SimpleWB::getOutputMin()

Python:

cv.xphoto.SimpleWB.getOutputMin() -> retval

Output image range minimum value.

See also

setOutputMin

getP()#

float cv::xphoto::SimpleWB::getP()

Python:

cv.xphoto.SimpleWB.getP() -> retval

Percent of top/bottom values to ignore.

See also

setP

setInputMax()#

void cv::xphoto::SimpleWB::setInputMax(float val)

Python:

cv.xphoto.SimpleWB.setInputMax(val)

Input image range maximum value.

See also

getInputMax

setInputMin()#

void cv::xphoto::SimpleWB::setInputMin(float val)

Python:

cv.xphoto.SimpleWB.setInputMin(val)

Input image range minimum value.

See also

getInputMin

setOutputMax()#

void cv::xphoto::SimpleWB::setOutputMax(float val)

Python:

cv.xphoto.SimpleWB.setOutputMax(val)

Output image range maximum value.

See also

getOutputMax

setOutputMin()#

void cv::xphoto::SimpleWB::setOutputMin(float val)

Python:

cv.xphoto.SimpleWB.setOutputMin(val)

Output image range minimum value.

See also

getOutputMin

setP()#

void cv::xphoto::SimpleWB::setP(float val)

Python:

cv.xphoto.SimpleWB.setP(val)

Percent of top/bottom values to ignore.

See also

getP

Source file#

The documentation for this class was generated from the following file: