Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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

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

public class ComputeSingleColorHistogram
extends AbstractApplication

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

Author:
Erich Schubert

Field Summary
static OptionID COLORHIST_ID
          Option id to use for computing the histogram.
private  ObjectParameter<ComputeColorHistogram> COLORHIST_PARAM
          Class parameter for computing the color histogram.
private  ComputeColorHistogram histogrammaker
          Class that will compute the actual histogram
static OptionID INPUT_ID
          OptionID for INPUT_PARAM
private  FileParameter INPUT_PARAM
          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
config, INFORMATION, STATIC_LOGGER
 
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debug, logger
 
Constructor Summary
ComputeSingleColorHistogram(Parameterization config)
          Constructor, adhering to Parameterizable
 
Method Summary
static void main(String[] args)
          Main method to run this wrapper.
 void run()
          Runs the application.
 
Methods inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication
isVerbose, printErrorMessage, runCLIApplication, usage
 
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning
 
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
Option id to use for computing the histogram. See COLORHIST_PARAM


COLORHIST_PARAM

private ObjectParameter<ComputeColorHistogram> COLORHIST_PARAM
Class parameter for computing the color histogram.

Key: -colorhist.generator


INPUT_ID

public static final OptionID INPUT_ID
OptionID for INPUT_PARAM


INPUT_PARAM

private final FileParameter INPUT_PARAM
Parameter that specifies the name of the input file.

Key: -app.in


histogrammaker

private ComputeColorHistogram histogrammaker
Class that will compute the actual histogram


inputFile

private File inputFile
Input file.

Constructor Detail

ComputeSingleColorHistogram

public ComputeSingleColorHistogram(Parameterization config)
Constructor, adhering to Parameterizable

Parameters:
config - Parameterization
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 wrapper.

Parameters:
args - the arguments to run this wrapper

Release 0.3 (2010-03-31_1612)