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 anAnnotationAggregateCSVGeneratorwith predefined column headers. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidwriteFeaturesToCSV(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
writeToFileMethods inherited from class org.anchoranalysis.io.generator.tabular.CSVGenerator
selectFileExtensionMethods inherited from class org.anchoranalysis.io.generator.OneStageGenerator
transformMethods inherited from class org.anchoranalysis.io.generator.SingleFileTypeGenerator
write, writeWithIndex
-
Constructor Details
-
AnnotationAggregateCSVGenerator
public AnnotationAggregateCSVGenerator()Constructs anAnnotationAggregateCSVGeneratorwith predefined column headers.
-
-
Method Details
-
writeFeaturesToCSV
protected void writeFeaturesToCSV(CSVWriter writer, List<ImageAnnotation> allFeatureResults, List<String> headerNames) throws OutputWriteFailedException Description copied from class:FeatureTableCSVGeneratorWrites the features to the CSV-file.- Specified by:
writeFeaturesToCSVin 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.
-