OpenCV  4.10.0
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cv::xphoto::SimpleWB Class Referenceabstract

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. More...

#include <opencv2/xphoto/white_balance.hpp>

Collaboration diagram for cv::xphoto::SimpleWB:

Public Member Functions

virtual float getInputMax () const =0
 Input image range maximum value.
 
virtual float getInputMin () const =0
 Input image range minimum value.
 
virtual float getOutputMax () const =0
 Output image range maximum value.
 
virtual float getOutputMin () const =0
 Output image range minimum value.
 
virtual float getP () const =0
 Percent of top/bottom values to ignore.
 
virtual void setInputMax (float val)=0
 Input image range maximum value.
 
virtual void setInputMin (float val)=0
 Input image range minimum value.
 
virtual void setOutputMax (float val)=0
 Output image range maximum value.
 
virtual void setOutputMin (float val)=0
 Output image range minimum value.
 
virtual void setP (float val)=0
 Percent of top/bottom values to ignore.
 
- Public Member Functions inherited from cv::xphoto::WhiteBalancer
virtual void balanceWhite (InputArray src, OutputArray dst)=0
 Applies white balancing to the input image.
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage.
 
virtual void save (const String &filename) const
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage.
 
void write (FileStorage &fs, const String &name) const
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tpload (const String &filename, const String &objname=String())
 Loads algorithm from the file.
 
template<typename _Tp >
static Ptr< _TploadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String.
 
template<typename _Tp >
static Ptr< _Tpread (const FileNode &fn)
 Reads algorithm from the file node.
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

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()

virtual float cv::xphoto::SimpleWB::getInputMax ( ) const
pure virtual
Python:
cv.xphoto.SimpleWB.getInputMax() -> retval

Input image range maximum value.

See also
setInputMax

◆ getInputMin()

virtual float cv::xphoto::SimpleWB::getInputMin ( ) const
pure virtual
Python:
cv.xphoto.SimpleWB.getInputMin() -> retval

Input image range minimum value.

See also
setInputMin

◆ getOutputMax()

virtual float cv::xphoto::SimpleWB::getOutputMax ( ) const
pure virtual
Python:
cv.xphoto.SimpleWB.getOutputMax() -> retval

Output image range maximum value.

See also
setOutputMax

◆ getOutputMin()

virtual float cv::xphoto::SimpleWB::getOutputMin ( ) const
pure virtual
Python:
cv.xphoto.SimpleWB.getOutputMin() -> retval

Output image range minimum value.

See also
setOutputMin

◆ getP()

virtual float cv::xphoto::SimpleWB::getP ( ) const
pure virtual
Python:
cv.xphoto.SimpleWB.getP() -> retval

Percent of top/bottom values to ignore.

See also
setP

◆ setInputMax()

virtual void cv::xphoto::SimpleWB::setInputMax ( float  val)
pure virtual
Python:
cv.xphoto.SimpleWB.setInputMax(val) -> None

Input image range maximum value.

See also
getInputMax

◆ setInputMin()

virtual void cv::xphoto::SimpleWB::setInputMin ( float  val)
pure virtual
Python:
cv.xphoto.SimpleWB.setInputMin(val) -> None

Input image range minimum value.

See also
getInputMin

◆ setOutputMax()

virtual void cv::xphoto::SimpleWB::setOutputMax ( float  val)
pure virtual
Python:
cv.xphoto.SimpleWB.setOutputMax(val) -> None

Output image range maximum value.

See also
getOutputMax

◆ setOutputMin()

virtual void cv::xphoto::SimpleWB::setOutputMin ( float  val)
pure virtual
Python:
cv.xphoto.SimpleWB.setOutputMin(val) -> None

Output image range minimum value.

See also
getOutputMin

◆ setP()

virtual void cv::xphoto::SimpleWB::setP ( float  val)
pure virtual
Python:
cv.xphoto.SimpleWB.setP(val) -> None

Percent of top/bottom values to ignore.

See also
getP

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