public class BatikHistogramNormalizationFilter8Bit extends AbstractColorInterpolationRable implements BatikHistogramNormalizationFilter
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
histo |
protected float |
intercept |
protected float |
slope |
csLinearprops, srcs, stampHINTS_OBSERVED| Constructor and Description |
|---|
BatikHistogramNormalizationFilter8Bit(Filter src,
float trim) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeHistogram(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
|
RenderedImage |
createRendering(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, touchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOperationColorSpace, isColorSpaceLinear, setColorSpaceLineargetBounds2D, getDependencyRegion, getDirtyRegion, getTimeStampcreateDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamicprotected 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(RenderContext rc)
rc - We get the set of rendering hints from rc.public RenderedImage createRendering(RenderContext rc)
createRendering in interface RenderableImageCopyright © 2000–2021 Apache Software Foundation. All rights reserved.