java.awt.image.renderable.RenderableImage, Filter, FilterColorInterpolation, BatikHistogramNormalizationFilterpublic class BatikHistogramNormalizationFilter8Bit extends AbstractColorInterpolationRable implements BatikHistogramNormalizationFilter
| Modifier and Type | Field | Description |
|---|---|---|
protected int[] |
histo |
|
protected float |
intercept |
|
protected float |
slope |
csLinearprops, srcs, stamp| Constructor | Description |
|---|---|
BatikHistogramNormalizationFilter8Bit(Filter src,
float trim) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
computeHistogram(java.awt.image.renderable.RenderContext rc) |
This method computes the histogram of the image and
from that the appropriate clipping points, which leads
to a slope and intercept for a LinearTransfer function
|
java.awt.image.RenderedImage |
createRendering(java.awt.image.renderable.RenderContext rc) |
|
Filter |
getSource() |
Returns the source of the operation
|
float |
getTrim() |
Returns the trim percent for this normalization.
|
void |
setSource(Filter src) |
Sets the source of the operation
|
void |
setTrim(float trim) |
Sets the trim percent for this normalization.
|
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearcreateDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touchgetBounds2D, getDependencyRegion, getDirtyRegion, getTimeStampgetOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearprotected int[] histo
protected float slope
protected float intercept
public BatikHistogramNormalizationFilter8Bit(Filter src, float trim)
public void setSource(Filter src)
setSource in interface BatikHistogramNormalizationFiltersrc - image to offset.public Filter getSource()
getSource in interface BatikHistogramNormalizationFilterpublic float getTrim()
getTrim in interface BatikHistogramNormalizationFilterpublic void setTrim(float trim)
setTrim in interface BatikHistogramNormalizationFilterpublic void computeHistogram(java.awt.image.renderable.RenderContext rc)
rc - We get the set of rendering hints from rc.public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
createRendering in interface java.awt.image.renderable.RenderableImageCopyright ? 2018 Apache Software Foundation. All Rights Reserved.