org.apache.batik.extension.svg

Class BatikHistogramNormalizationFilter8Bit

public class BatikHistogramNormalizationFilter8Bit extends AbstractColorInterpolationRable implements BatikHistogramNormalizationFilter

Field Summary
protected int[]histo
protected floatintercept
protected floatslope
Constructor Summary
BatikHistogramNormalizationFilter8Bit(Filter src, float trim)
Method Summary
voidcomputeHistogram(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
RenderedImagecreateRendering(RenderContext rc)
FiltergetSource()
Returns the source of the operation
floatgetTrim()
Returns the trim percent for this normalization.
voidsetSource(Filter src)
Sets the source of the operation
voidsetTrim(float trim)
Sets the trim percent for this normalization.

Field Detail

histo

protected int[] histo

intercept

protected float intercept

slope

protected float slope

Constructor Detail

BatikHistogramNormalizationFilter8Bit

public BatikHistogramNormalizationFilter8Bit(Filter src, float trim)

Method Detail

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)

getSource

public Filter getSource()
Returns the source of the operation

getTrim

public float getTrim()
Returns the trim percent for this normalization.

setSource

public void setSource(Filter src)
Sets the source of the operation

setTrim

public void setTrim(float trim)
Sets the trim percent for this normalization.
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.