de.lmu.ifi.dbs.elki.application
Class ComputeSingleColorHistogram

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.application.AbstractApplication
      extended by de.lmu.ifi.dbs.elki.application.ComputeSingleColorHistogram
All Implemented Interfaces:
InspectionUtilFrequentlyScanned, Parameterizable

public class ComputeSingleColorHistogram
extends AbstractApplication

Application that computes the color histogram vector for a single image.


Nested Class Summary
static class ComputeSingleColorHistogram.Parameterizer
          Parameterization class.
 
Field Summary
static OptionID COLORHIST_ID
          Class parameter for computing the color histogram.
private  ComputeColorHistogram histogrammaker
          Class that will compute the actual histogram
static OptionID INPUT_ID
          Parameter that specifies the name of the input file.
private  File inputFile
          Input file.
 
Fields inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
INFORMATION, OUTPUT_ID, STATIC_LOGGER
 
Constructor Summary
ComputeSingleColorHistogram(boolean verbose, ComputeColorHistogram histogrammaker, File inputFile)
          Constructor.
 
Method Summary
static void main(String[] args)
          Main method to run this application.
 void run()
          Runs the application.
 
Methods inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
isVerbose, printErrorMessage, runCLIApplication, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLORHIST_ID

public static OptionID COLORHIST_ID
Class parameter for computing the color histogram.

Key: -colorhist.generator


INPUT_ID

public static final OptionID INPUT_ID
Parameter that specifies the name of the input file.

Key: -colorhist.in


histogrammaker

private ComputeColorHistogram histogrammaker
Class that will compute the actual histogram


inputFile

private File inputFile
Input file.

Constructor Detail

ComputeSingleColorHistogram

public ComputeSingleColorHistogram(boolean verbose,
                                   ComputeColorHistogram histogrammaker,
                                   File inputFile)
Constructor.

Parameters:
verbose - Verbose flag
histogrammaker - Class to compute histograms with
inputFile - Input file
Method Detail

run

public void run()
         throws UnableToComplyException
Description copied from class: AbstractApplication
Runs the application.

Specified by:
run in class AbstractApplication
Throws:
UnableToComplyException - if an error occurs during running the application

main

public static void main(String[] args)
Main method to run this application.

Parameters:
args - the arguments to run this application

Release 0.4.0 (2011-09-20_1324)