Class AnnotationAggregateCSVGenerator
Object
SingleFileTypeGenerator<List<ImageAnnotation>,List<ImageAnnotation>>
- All Implemented Interfaces:
Generator<List<ImageAnnotation>>
,TransformingGenerator<List<ImageAnnotation>,
,List<ImageAnnotation>> ElementWriter<List<ImageAnnotation>>
public class AnnotationAggregateCSVGenerator
extends FeatureTableCSVGenerator<List<ImageAnnotation>>
Generates a CSV file containing aggregated annotation data.
This class extends FeatureTableCSVGenerator
to create a CSV file with columns for
image ID and label.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs anAnnotationAggregateCSVGenerator
with predefined column headers. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
writeFeaturesToCSV
(CSVWriter writer, List<ImageAnnotation> allFeatureResults, List<String> headerNames) Writes the features to the CSV-file.Methods inherited from class org.anchoranalysis.feature.io.csv.table.FeatureTableCSVGenerator
writeToFile
Methods inherited from class org.anchoranalysis.io.generator.tabular.CSVGenerator
selectFileExtension
Methods inherited from class org.anchoranalysis.io.generator.OneStageGenerator
transform
Methods inherited from class org.anchoranalysis.io.generator.SingleFileTypeGenerator
write, writeWithIndex
-
Constructor Details
-
AnnotationAggregateCSVGenerator
public AnnotationAggregateCSVGenerator()Constructs anAnnotationAggregateCSVGenerator
with predefined column headers.
-
-
Method Details
-
writeFeaturesToCSV
protected void writeFeaturesToCSV(CSVWriter writer, List<ImageAnnotation> allFeatureResults, List<String> headerNames) throws OutputWriteFailedException Description copied from class:FeatureTableCSVGenerator
Writes the features to the CSV-file.- Specified by:
writeFeaturesToCSV
in classFeatureTableCSVGenerator<List<ImageAnnotation>>
- Parameters:
writer
- the write to useallFeatureResults
- all rows to writeheaderNames
- header-names for columns, corresponding to the data inrows
.- Throws:
OutputWriteFailedException
- if the output cannot be written.
-