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, OUTPUT_ID, STATIC_LOGGER
Constructor and Description |
---|
ComputeSingleColorHistogram(boolean verbose,
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.
|
isVerbose, printErrorMessage, runCLIApplication, usage
public 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(boolean verbose, ComputeColorHistogram histogrammaker, File inputFile, File maskFile)
verbose
- Verbose flaghistogrammaker
- Class to compute histograms withinputFile
- Input filemaskFile
- Mask filepublic void run() throws UnableToComplyException
AbstractApplication
run
in class AbstractApplication
UnableToComplyException
- if
an error occurs during running the applicationpublic static void main(String[] args)
args
- the arguments to run this application