|
virtual void | extractSimpleFeatures (InputArray src, OutputArray dst)=0 |
| Implements the feature extraction part of the algorithm. More...
|
|
virtual int | getHistBinNum () const =0 |
| Defines the size of one dimension of a three-dimensional RGB histogram that is used internally by the algorithm. It often makes sense to increase the number of bins for images with higher bit depth (e.g. 256 bins for a 12 bit image). More...
|
|
virtual int | getRangeMaxVal () const =0 |
| Maximum possible value of the input image (e.g. 255 for 8 bit images, 4095 for 12 bit images) More...
|
|
virtual float | getSaturationThreshold () const =0 |
| Threshold that is used to determine saturated pixels, i.e. pixels where at least one of the channels exceeds \(\texttt{saturation_threshold}\times\texttt{range_max_val}\) are ignored. More...
|
|
virtual void | setHistBinNum (int val)=0 |
| Defines the size of one dimension of a three-dimensional RGB histogram that is used internally by the algorithm. It often makes sense to increase the number of bins for images with higher bit depth (e.g. 256 bins for a 12 bit image). More...
|
|
virtual void | setRangeMaxVal (int val)=0 |
| Maximum possible value of the input image (e.g. 255 for 8 bit images, 4095 for 12 bit images) More...
|
|
virtual void | setSaturationThreshold (float val)=0 |
| Threshold that is used to determine saturated pixels, i.e. pixels where at least one of the channels exceeds \(\texttt{saturation_threshold}\times\texttt{range_max_val}\) are ignored. More...
|
|
virtual void | balanceWhite (InputArray src, OutputArray dst)=0 |
| Applies white balancing to the input image. More...
|
|
| Algorithm () |
|
virtual | ~Algorithm () |
|
virtual void | clear () |
| Clears the algorithm state. More...
|
|
virtual bool | empty () const |
| Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
|
|
virtual String | getDefaultName () const |
|
virtual void | read (const FileNode &fn) |
| Reads algorithm parameters from a file storage. More...
|
|
virtual void | save (const String &filename) const |
|
virtual void | write (FileStorage &fs) const |
| Stores algorithm parameters in a file storage. More...
|
|
void | write (FileStorage &fs, const String &name) const |
|
void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
|
More sophisticated learning-based automatic white balance algorithm.
As GrayworldWB, this algorithm works by applying different gains to the input image channels, but their computation is a bit more involved compared to the simple gray-world assumption. More details about the algorithm can be found in [50] .
To mask out saturated pixels this function uses only pixels that satisfy the following condition:
\[ \frac{\textrm{max}(R,G,B)}{\texttt{range_max_val}} < \texttt{saturation_thresh} \]
Currently supports images of type CV_8UC3 and CV_16UC3.