Class SimpleWB
java.lang.Object
org.opencv.core.Algorithm
org.opencv.xphoto.WhiteBalancer
org.opencv.xphoto.SimpleWB
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.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleWB__fromPtr__(long addr) protected voidfinalize()floatInput image range maximum value SEE: setInputMaxfloatInput image range minimum value SEE: setInputMinfloatOutput image range maximum value SEE: setOutputMaxfloatOutput image range minimum value SEE: setOutputMinfloatgetP()Percent of top/bottom values to ignore SEE: setPvoidsetInputMax(float val) getInputMax SEE: getInputMaxvoidsetInputMin(float val) getInputMin SEE: getInputMinvoidsetOutputMax(float val) getOutputMax SEE: getOutputMaxvoidsetOutputMin(float val) getOutputMin SEE: getOutputMinvoidsetP(float val) getP SEE: getPMethods inherited from class WhiteBalancer
balanceWhiteMethods inherited from class Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
Constructor Details
-
SimpleWB
protected SimpleWB(long addr)
-
-
Method Details
-
__fromPtr__
-
getInputMin
public float getInputMin()Input image range minimum value SEE: setInputMin- Returns:
- automatically generated
-
setInputMin
public void setInputMin(float val) getInputMin SEE: getInputMin- Parameters:
val- automatically generated
-
getInputMax
public float getInputMax()Input image range maximum value SEE: setInputMax- Returns:
- automatically generated
-
setInputMax
public void setInputMax(float val) getInputMax SEE: getInputMax- Parameters:
val- automatically generated
-
getOutputMin
public float getOutputMin()Output image range minimum value SEE: setOutputMin- Returns:
- automatically generated
-
setOutputMin
public void setOutputMin(float val) getOutputMin SEE: getOutputMin- Parameters:
val- automatically generated
-
getOutputMax
public float getOutputMax()Output image range maximum value SEE: setOutputMax- Returns:
- automatically generated
-
setOutputMax
public void setOutputMax(float val) getOutputMax SEE: getOutputMax- Parameters:
val- automatically generated
-
getP
public float getP()Percent of top/bottom values to ignore SEE: setP- Returns:
- automatically generated
-
setP
public void setP(float val) getP SEE: getP- Parameters:
val- automatically generated
-
finalize
- Overrides:
finalizein classWhiteBalancer- Throws:
Throwable
-