com.anji.imaging
Class ImageRandomizer

java.lang.Object
  extended bycom.anji.imaging.ImageRandomizer
All Implemented Interfaces:
Configurable

public class ImageRandomizer
extends java.lang.Object
implements Configurable

TODO - bicubic with JDK 1.5

Author:
Philip Tucker

Field Summary
static java.lang.String IMG_MATCH_COUNT_KEY
          number of image files to place in match directory
static java.lang.String IMG_MISMATCH_COUNT_KEY
          number of image files to place in mismatch directory
static java.lang.String IMG_RANDOMIZE_KEY
          property to determine if images should be randomized
 
Constructor Summary
ImageRandomizer()
           
 
Method Summary
 void init(Properties props)
           
 void transformFiles(java.io.File destMatchDIr, java.io.File destMismatchDir)
          clears destination dirs then populates them with new transformed images
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMG_RANDOMIZE_KEY

public static final java.lang.String IMG_RANDOMIZE_KEY
property to determine if images should be randomized

See Also:
Constant Field Values

IMG_MATCH_COUNT_KEY

public static final java.lang.String IMG_MATCH_COUNT_KEY
number of image files to place in match directory

See Also:
Constant Field Values

IMG_MISMATCH_COUNT_KEY

public static final java.lang.String IMG_MISMATCH_COUNT_KEY
number of image files to place in mismatch directory

See Also:
Constant Field Values
Constructor Detail

ImageRandomizer

public ImageRandomizer()
Method Detail

init

public void init(Properties props)
          throws java.io.IOException
Specified by:
init in interface Configurable
Parameters:
props -
Throws:
java.io.IOException

transformFiles

public void transformFiles(java.io.File destMatchDIr,
                           java.io.File destMismatchDir)
                    throws java.io.IOException
clears destination dirs then populates them with new transformed images

Parameters:
destMatchDIr - directory to which transformed match image files are written
destMismatchDir - directory to which transformed mismatch image files are written
Throws:
java.io.IOException