
public class ComputeSingleColorHistogram extends AbstractApplication
| Modifier and Type | Class and Description |
|---|---|
static class |
ComputeSingleColorHistogram.Parameterizer
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
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.
|
static OptionID |
MASK_ID
Parameter that specifies the name of the mask input file.
|
private File |
maskFile
Mask file.
|
INFORMATION| Constructor and Description |
|---|
ComputeSingleColorHistogram(ComputeColorHistogram histogrammaker,
File inputFile,
File maskFile)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Main method to run this application.
|
void |
run()
Runs the application.
|
printErrorMessage, runCLIApplication, usagepublic static OptionID COLORHIST_ID
Key: -colorhist.generator
public static final OptionID INPUT_ID
Key: -colorhist.in
public static final OptionID MASK_ID
Key: -colorhist.mask
private ComputeColorHistogram histogrammaker
private File inputFile
private File maskFile
public ComputeSingleColorHistogram(ComputeColorHistogram histogrammaker, File inputFile, File maskFile)
histogrammaker - Class to compute histograms withinputFile - Input filemaskFile - Mask filepublic void run()
throws UnableToComplyException
AbstractApplicationrun in class AbstractApplicationUnableToComplyException - if an error occurs during running the
applicationpublic static void main(String[] args)
args - the arguments to run this application