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 |
|
virtual void | setInputMin (float val)=0 |
|
virtual void | setOutputMax (float val)=0 |
|
virtual void | setOutputMin (float val)=0 |
|
virtual void | setP (float val)=0 |
|
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 (const Ptr< FileStorage > &fs, const String &name=String()) const |
| simplified API for language bindingsThis is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
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.
virtual float cv::xphoto::SimpleWB::getInputMax |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| retval | = | cv.xphoto_SimpleWB.getInputMax( | | ) |
virtual float cv::xphoto::SimpleWB::getInputMin |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| retval | = | cv.xphoto_SimpleWB.getInputMin( | | ) |
virtual float cv::xphoto::SimpleWB::getOutputMax |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| retval | = | cv.xphoto_SimpleWB.getOutputMax( | | ) |
virtual float cv::xphoto::SimpleWB::getOutputMin |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| retval | = | cv.xphoto_SimpleWB.getOutputMin( | | ) |
virtual float cv::xphoto::SimpleWB::getP |
( |
| ) |
const |
|
pure virtual |
Python: |
---|
| retval | = | cv.xphoto_SimpleWB.getP( | | ) |
Percent of top/bottom values to ignore.
- See Also
- setP
virtual void cv::xphoto::SimpleWB::setInputMax |
( |
float |
val | ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.xphoto_SimpleWB.setInputMax( | val | ) |
virtual void cv::xphoto::SimpleWB::setInputMin |
( |
float |
val | ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.xphoto_SimpleWB.setInputMin( | val | ) |
virtual void cv::xphoto::SimpleWB::setOutputMax |
( |
float |
val | ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.xphoto_SimpleWB.setOutputMax( | val | ) |
virtual void cv::xphoto::SimpleWB::setOutputMin |
( |
float |
val | ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.xphoto_SimpleWB.setOutputMin( | val | ) |
virtual void cv::xphoto::SimpleWB::setP |
( |
float |
val | ) |
|
|
pure virtual |
Python: |
---|
| None | = | cv.xphoto_SimpleWB.setP( | val | ) |
Percent of top/bottom values to ignore.
- See Also
- getP
The documentation for this class was generated from the following file: