Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.extension.svg
Class BatikHistogramNormalizationFilter8Bit  view BatikHistogramNormalizationFilter8Bit download BatikHistogramNormalizationFilter8Bit.java

java.lang.Object
  extended byorg.apache.batik.ext.awt.image.renderable.AbstractRable
      extended byorg.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
          extended byorg.apache.batik.extension.svg.BatikHistogramNormalizationFilter8Bit
All Implemented Interfaces:
BatikHistogramNormalizationFilter, org.apache.batik.ext.awt.image.renderable.Filter, org.apache.batik.ext.awt.image.renderable.FilterColorInterpolation, java.awt.image.renderable.RenderableImage

public class BatikHistogramNormalizationFilter8Bit
extends org.apache.batik.ext.awt.image.renderable.AbstractColorInterpolationRable
implements BatikHistogramNormalizationFilter


Field Summary
protected  int[] histo
           
protected  float intercept
           
protected  float slope
           
private  float trim
           
 
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
 
Fields inherited from interface java.awt.image.renderable.RenderableImage
HINTS_OBSERVED
 
Constructor Summary
BatikHistogramNormalizationFilter8Bit(org.apache.batik.ext.awt.image.renderable.Filter src, float trim)
           
 
Method Summary
 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)
           
 org.apache.batik.ext.awt.image.renderable.Filter getSource()
          Returns the source of the operation
 float getTrim()
          Returns the trim percent for this normalization.
 void setSource(org.apache.batik.ext.awt.image.renderable.Filter src)
          Sets the source of the operation
 void setTrim(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.FilterColorInterpolation
getOperationColorSpace, isColorSpaceLinear, setColorSpaceLinear
 
Methods inherited from interface org.apache.batik.ext.awt.image.renderable.Filter
getBounds2D, getDependencyRegion, getDirtyRegion, getTimeStamp
 
Methods inherited from interface java.awt.image.renderable.RenderableImage
createDefaultRendering, createScaledRendering, getHeight, getMinX, getMinY, getProperty, getPropertyNames, getSources, getWidth, isDynamic
 

Field Detail

trim

private float trim

histo

protected int[] histo

slope

protected float slope

intercept

protected float intercept
Constructor Detail

BatikHistogramNormalizationFilter8Bit

public BatikHistogramNormalizationFilter8Bit(org.apache.batik.ext.awt.image.renderable.Filter src,
                                             float trim)
Method Detail

setSource

public void setSource(org.apache.batik.ext.awt.image.renderable.Filter src)
Sets the source of the operation

Specified by:
setSource in interface BatikHistogramNormalizationFilter

getSource

public org.apache.batik.ext.awt.image.renderable.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(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


createRendering

public java.awt.image.RenderedImage createRendering(java.awt.image.renderable.RenderContext rc)
Specified by:
createRendering in interface java.awt.image.renderable.RenderableImage