public class BatikHistogramNormalizationFilter8Bit extends AbstractColorInterpolationRable implements BatikHistogramNormalizationFilter
Modifier and Type | Field and Description |
---|---|
protected int[] |
histo |
protected float |
intercept |
protected float |
slope |
csLinear
props, srcs, stamp
Constructor and Description |
---|
BatikHistogramNormalizationFilter8Bit(Filter src,
float trim) |
Modifier and Type | Method and 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, setColorSpaceLinear
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
protected int[] histo
protected float slope
protected float intercept
public BatikHistogramNormalizationFilter8Bit(Filter src, float trim)
public void setSource(Filter src)
setSource
in interface BatikHistogramNormalizationFilter
src
- image to offset.public Filter getSource()
getSource
in interface BatikHistogramNormalizationFilter
public float getTrim()
getTrim
in interface BatikHistogramNormalizationFilter
public void setTrim(float trim)
setTrim
in interface BatikHistogramNormalizationFilter
public 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.RenderableImage
Copyright © 2022 Apache Software Foundation. All Rights Reserved.