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>
|
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.
|
|
virtual void | balanceWhite (InputArray src, OutputArray dst)=0 |
| Applies white balancing to the input image.
|
|
| 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 |
|
virtual void | write (FileStorage &fs) const |
| Stores algorithm parameters in a file storage.
|
|
void | write (FileStorage &fs, const String &name) const |
|
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.
◆ getInputMax()
virtual float cv::xphoto::SimpleWB::getInputMax |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| cv.xphoto.SimpleWB.getInputMax( | | ) -> | retval |
◆ getInputMin()
virtual float cv::xphoto::SimpleWB::getInputMin |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| cv.xphoto.SimpleWB.getInputMin( | | ) -> | retval |
◆ getOutputMax()
virtual float cv::xphoto::SimpleWB::getOutputMax |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| cv.xphoto.SimpleWB.getOutputMax( | | ) -> | retval |
◆ getOutputMin()
virtual float cv::xphoto::SimpleWB::getOutputMin |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| cv.xphoto.SimpleWB.getOutputMin( | | ) -> | retval |
◆ 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 |
◆ setInputMin()
virtual void cv::xphoto::SimpleWB::setInputMin |
( |
float | val | ) |
|
|
pure virtual |
Python: |
---|
| cv.xphoto.SimpleWB.setInputMin( | val | ) -> | None |
◆ setOutputMax()
virtual void cv::xphoto::SimpleWB::setOutputMax |
( |
float | val | ) |
|
|
pure virtual |
Python: |
---|
| cv.xphoto.SimpleWB.setOutputMax( | val | ) -> | None |
◆ setOutputMin()
virtual void cv::xphoto::SimpleWB::setOutputMin |
( |
float | val | ) |
|
|
pure virtual |
Python: |
---|
| cv.xphoto.SimpleWB.setOutputMin( | val | ) -> | None |
◆ 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: