Class BatikHistogramNormalizationFilter8Bit

    • Field Detail

      • histo

        protected int[] histo
      • slope

        protected float slope
      • intercept

        protected float intercept
    • Constructor Detail

      • BatikHistogramNormalizationFilter8Bit

        public BatikHistogramNormalizationFilter8Bit​(Filter src,
                                                     float trim)
    • Method Detail

      • 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:
        createRendering in interface java.awt.image.renderable.RenderableImage