Class BatikHistogramNormalizationFilter8Bit
java.lang.Object
org.apache.batik.ext.awt.image.renderable.AbstractRable
org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
org.apache.batik.extension.svg.BatikHistogramNormalizationFilter8Bit
- All Implemented Interfaces:
RenderableImage, Filter, FilterColorInterpolation, BatikHistogramNormalizationFilter
public class BatikHistogramNormalizationFilter8Bit
extends AbstractColorInterpolationRable
implements BatikHistogramNormalizationFilter
- Version:
- $Id$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]protected floatprotected floatprivate floatFields inherited from class AbstractColorInterpolationRable
csLinearFields inherited from class AbstractRable
props, srcs, stampFields inherited from interface RenderableImage
HINTS_OBSERVED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis method computes the histogram of the image and from that the appropriate clipping points, which leads to a slope and intercept for a LinearTransfer functionReturns the source of the operationfloatgetTrim()Returns the trim percent for this normalization.voidSets the source of the operationvoidsetTrim(float trim) Sets the trim percent for this normalization.Methods inherited from class AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from class AbstractRable
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touchMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStampMethods inherited from interface FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinearMethods inherited from interface RenderableImage
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
-
Field Details
-
trim
private float trim -
histo
protected int[] histo -
slope
protected float slope -
intercept
protected float intercept
-
-
Constructor Details
-
BatikHistogramNormalizationFilter8Bit
-
-
Method Details
-
setSource
Sets the source of the operation- Specified by:
setSourcein interfaceBatikHistogramNormalizationFilter- Parameters:
src- image to offset.
-
getSource
Returns the source of the operation- Specified by:
getSourcein interfaceBatikHistogramNormalizationFilter
-
getTrim
public float getTrim()Returns the trim percent for this normalization.- Specified by:
getTrimin interfaceBatikHistogramNormalizationFilter
-
setTrim
public void setTrim(float trim) Sets the trim percent for this normalization.- Specified by:
setTrimin interfaceBatikHistogramNormalizationFilter
-
computeHistogram
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- Parameters:
rc- We get the set of rendering hints from rc.
-
createRendering
- Specified by:
createRenderingin interfaceRenderableImage
-