public class LearningBasedWB extends WhiteBalancer
Modifier | Constructor and Description |
---|---|
protected |
LearningBasedWB(long addr) |
Modifier and Type | Method and Description |
---|---|
static LearningBasedWB |
__fromPtr__(long addr) |
void |
extractSimpleFeatures(Mat src,
Mat dst)
Implements the feature extraction part of the algorithm.
|
protected void |
finalize() |
int |
getHistBinNum()
Defines the size of one dimension of a three-dimensional RGB histogram that is used internally
by the algorithm.
|
int |
getRangeMaxVal()
Maximum possible value of the input image (e.g.
|
float |
getSaturationThreshold()
Threshold that is used to determine saturated pixels, i.e.
|
void |
setHistBinNum(int val)
getHistBinNum SEE: getHistBinNum
|
void |
setRangeMaxVal(int val)
getRangeMaxVal SEE: getRangeMaxVal
|
void |
setSaturationThreshold(float val)
getSaturationThreshold SEE: getSaturationThreshold
|
balanceWhite
clear, empty, getDefaultName, getNativeObjAddr, save
public static LearningBasedWB __fromPtr__(long addr)
public void extractSimpleFeatures(Mat src, Mat dst)
src
- Input three-channel image (BGR color space is assumed).dst
- An array of four (r,g) chromaticity tuples corresponding to the features listed above.public int getRangeMaxVal()
public void setRangeMaxVal(int val)
val
- automatically generatedpublic float getSaturationThreshold()
public void setSaturationThreshold(float val)
val
- automatically generatedpublic int getHistBinNum()
public void setHistBinNum(int val)
val
- automatically generatedprotected void finalize() throws Throwable
finalize
in class WhiteBalancer
Throwable
Copyright © 2024. All rights reserved.