public class YCbCrFiltering extends java.lang.Object implements IApplyInPlace
| Constructor and Description |
|---|
YCbCrFiltering()
Initializes a new instance of the YCbCrFiltering class.
|
YCbCrFiltering(FloatRange y,
FloatRange cb,
FloatRange cr)
Initializes a new instance of the YCbCrFiltering class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyInPlace(FastBitmap fastBitmap)
Apply filter to an image.
|
FloatRange |
getCb()
Get Range of cb component, [-0.5, 0.5].
|
FloatRange |
getCr()
Get Range of cr component, [-0.5, 0.5].
|
float[] |
getFillColor()
Get fill color used to fill filtered pixels.
|
FloatRange |
getY()
Get Range of Y component, [0, 1].
|
boolean |
isFillOutsideRange()
Verify if pixels should be filled inside or outside specified color range.
|
boolean |
isUpdatedCb()
Verify if cb value of filtered pixels should be updated.
|
boolean |
isUpdatedCr()
Verify if cr value of filtered pixels should be updated.
|
boolean |
isUpdatedY()
Verify if y value of filtered pixels should be updated.
|
void |
setCb(FloatRange cb)
Set Range of cb component, [-0.5, 0.5].
|
void |
setCr(FloatRange cr)
Set Range of cr component, [-0.5, 0.5].
|
void |
setFillColor(float y,
float cb,
float cr)
Set fill color used to fill filtered pixels.
|
void |
setFillOutsideRange(boolean fillOutsideRange)
Determines, if pixels should be filled inside or outside specified.
|
void |
setHue(FloatRange y)
Set Range of Y component, [0, 1].
|
void |
setUpdateCb(boolean update)
Determines, if cb value of filtered pixels should be updated.
|
void |
setUpdateCr(boolean update)
Determines, if cr value of filtered pixels should be updated.
|
void |
setUpdateY(boolean update)
Determines, if y value of filtered pixels should be updated.
|
public YCbCrFiltering()
public YCbCrFiltering(FloatRange y, FloatRange cb, FloatRange cr)
y - Range of y component.cb - Range of cb component.cr - Range of cr component.public FloatRange getY()
public void setHue(FloatRange y)
yRange - Y component.public FloatRange getCb()
public void setCb(FloatRange cb)
cb - Cb component.public FloatRange getCr()
public void setCr(FloatRange cr)
cr - Cr component.public float[] getFillColor()
public void setFillColor(float y,
float cb,
float cr)
y - Y, [0, 1].cb - Cb, [-0.5, 0.5].cr - Cr, [-0.5, 0.5].public boolean isFillOutsideRange()
public void setFillOutsideRange(boolean fillOutsideRange)
fillOutsideRange - True if fill outside the range, otherwise false.public boolean isUpdatedY()
public void setUpdateY(boolean update)
update - True if should be updated, otherwise false.public boolean isUpdatedCb()
public void setUpdateCb(boolean update)
update - True if should be updated, otherwise false.public boolean isUpdatedCr()
public void setUpdateCr(boolean update)
update - True if should be updated, otherwise false.public void applyInPlace(FastBitmap fastBitmap)
IApplyInPlaceapplyInPlace in interface IApplyInPlacefastBitmap - Image to be processed.