Class HistogramCSVGenerator
Object
org.anchoranalysis.io.generator.SingleFileTypeGenerator<T,T>
org.anchoranalysis.io.generator.OneStageGenerator<T>
org.anchoranalysis.io.generator.tabular.CSVGenerator<org.anchoranalysis.math.histogram.Histogram>
org.anchoranalysis.image.io.histogram.output.HistogramCSVGenerator
- All Implemented Interfaces:
Generator<org.anchoranalysis.math.histogram.Histogram>,TransformingGenerator<org.anchoranalysis.math.histogram.Histogram,org.anchoranalysis.math.histogram.Histogram>,ElementWriter<org.anchoranalysis.math.histogram.Histogram>
public class HistogramCSVGenerator extends CSVGenerator<org.anchoranalysis.math.histogram.Histogram>
Writes a histogram to a CSV file.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description HistogramCSVGenerator() -
Method Summary
Modifier and Type Method Description booleanisIgnoreZeros()Iff true bins in the histogram with a zero count are not writtenvoidsetIgnoreZeros(boolean ignoreZeros)Iff true bins in the histogram with a zero count are not writtenvoidwriteToFile(org.anchoranalysis.math.histogram.Histogram element, OutputWriteSettings settings, Path filePath)Methods inherited from class org.anchoranalysis.io.generator.tabular.CSVGenerator
selectFileExtensionMethods inherited from class org.anchoranalysis.io.generator.SingleFileTypeGenerator
write, writeWithIndex
-
Constructor Details
-
HistogramCSVGenerator
public HistogramCSVGenerator()
-
-
Method Details
-
writeToFile
public void writeToFile(org.anchoranalysis.math.histogram.Histogram element, OutputWriteSettings settings, Path filePath) throws OutputWriteFailedException- Specified by:
writeToFilein classSingleFileTypeGenerator<org.anchoranalysis.math.histogram.Histogram,org.anchoranalysis.math.histogram.Histogram>- Throws:
OutputWriteFailedException
-
isIgnoreZeros
public boolean isIgnoreZeros()Iff true bins in the histogram with a zero count are not written -
setIgnoreZeros
public void setIgnoreZeros(boolean ignoreZeros)Iff true bins in the histogram with a zero count are not written
-