org.apache.batik.extension.svg
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:
- BatikHistogramNormalizationFilter, Filter, FilterColorInterpolation, RenderableImage
- public class BatikHistogramNormalizationFilter8Bit
- extends AbstractColorInterpolationRable
- implements BatikHistogramNormalizationFilter
Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable |
createDefaultRendering, createScaledRendering, getBounds2D, getDependencyRegion, getDirtyRegion, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getTimeStamp, getWidth, init, init, init, init, isDynamic, touch |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
histo
protected int[] histo
slope
protected float slope
intercept
protected float intercept
BatikHistogramNormalizationFilter8Bit
public BatikHistogramNormalizationFilter8Bit(Filter src,
float trim)
setSource
public void setSource(Filter src)
- Sets the source of the operation
- Specified by:
setSource
in interface BatikHistogramNormalizationFilter
- Parameters:
src
- image to offset.
getSource
public Filter getSource()
- Returns the source of the operation
- Specified by:
getSource
in interface BatikHistogramNormalizationFilter
getTrim
public float getTrim()
- Returns the trim percent for this normalization.
- Specified by:
getTrim
in interface BatikHistogramNormalizationFilter
setTrim
public void setTrim(float trim)
- Sets the trim percent for this normalization.
- Specified by:
setTrim
in interface BatikHistogramNormalizationFilter
computeHistogram
public 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
- Parameters:
rc
- We get the set of rendering hints from rc.
createRendering
public RenderedImage createRendering(RenderContext rc)
- Specified by:
createRendering
in interface RenderableImage
Copyright © 2009 Apache Software Foundation. All Rights Reserved.