org.broadleafcommerce.openadmin.server.service.artifact.image.effects.chain.filter
Class AutoLevelsRGB

java.lang.Object
  extended by org.broadleafcommerce.openadmin.server.service.artifact.image.effects.chain.filter.BaseFilter
      extended by org.broadleafcommerce.openadmin.server.service.artifact.image.effects.chain.filter.AutoLevelsRGB
All Implemented Interfaces:
BufferedImageOp, OperationBuilder

public class AutoLevelsRGB
extends BaseFilter

This filter is based conceptually on the auto-levels feature of Photoshop and functions in the same way. The filter automatically adjusts tonal range for problem photographs, making sure the tones are equally distributed from black to white. Note, a marginal clipping does occur at the highs and lows to account for aberrant pixels in those quadrants that might erroneously effect the calculation.

Author:
jfischer

Constructor Summary
AutoLevelsRGB()
           
AutoLevelsRGB(RenderingHints hints)
           
 
Method Summary
 Operation buildOperation(Map<String,String> parameterMap, InputStream artifactStream, String mimeType)
           
 BufferedImage filter(BufferedImage src, BufferedImage dst)
           
static void main(String[] args)
           
 
Methods inherited from class org.broadleafcommerce.openadmin.server.service.artifact.image.effects.chain.filter.BaseFilter
containsMyFilterParams, createCompatibleDestImage, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoLevelsRGB

public AutoLevelsRGB()

AutoLevelsRGB

public AutoLevelsRGB(RenderingHints hints)
Method Detail

main

public static void main(String[] args)

buildOperation

public Operation buildOperation(Map<String,String> parameterMap,
                                InputStream artifactStream,
                                String mimeType)

filter

public BufferedImage filter(BufferedImage src,
                            BufferedImage dst)


Copyright © 2013. All Rights Reserved.