Package 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:
java.awt.image.renderable.RenderableImage,Filter,FilterColorInterpolation,BatikHistogramNormalizationFilter
public class BatikHistogramNormalizationFilter8Bit extends AbstractColorInterpolationRable implements BatikHistogramNormalizationFilter
- Version:
- $Id: BatikHistogramNormalizationFilter8Bit.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]histoprotected floatinterceptprotected floatslopeprivate floattrim-
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
csLinear
-
Fields inherited from class org.apache.batik.ext.awt.image.renderable.AbstractRable
props, srcs, stamp
-
-
Constructor Summary
Constructors Constructor Description BatikHistogramNormalizationFilter8Bit(Filter src, float trim)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeHistogram(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 functionjava.awt.image.RenderedImagecreateRendering(java.awt.image.renderable.RenderContext rc)FiltergetSource()Returns the source of the operationfloatgetTrim()Returns the trim percent for this normalization.voidsetSource(Filter src)Sets the source of the operationvoidsetTrim(float trim)Sets the trim percent for this normalization.-
Methods inherited from class org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
convertSourceCS, convertSourceCS, getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
-
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
-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
-
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
-
-
-
-
Constructor Detail
-
BatikHistogramNormalizationFilter8Bit
public BatikHistogramNormalizationFilter8Bit(Filter src, float trim)
-
-
Method Detail
-
setSource
public void setSource(Filter src)
Sets the source of the operation- Specified by:
setSourcein interfaceBatikHistogramNormalizationFilter- Parameters:
src- image to offset.
-
getSource
public Filter 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
public 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- Parameters:
rc- We get the set of rendering hints from rc.
-
createRendering
public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
- Specified by:
createRenderingin interfacejava.awt.image.renderable.RenderableImage
-
-