Class AnnotationAggregateCSVGenerator
Object
org.anchoranalysis.io.generator.SingleFileTypeGenerator<T,T>
org.anchoranalysis.io.generator.OneStageGenerator<T>
org.anchoranalysis.io.generator.tabular.CSVGenerator<T>
org.anchoranalysis.feature.io.csv.table.FeatureTableCSVGenerator<List<org.anchoranalysis.plugin.annotation.bean.aggregate.ImageAnnotation>>
org.anchoranalysis.plugin.annotation.bean.aggregate.AnnotationAggregateCSVGenerator
- All Implemented Interfaces:
org.anchoranalysis.io.generator.Generator<List<org.anchoranalysis.plugin.annotation.bean.aggregate.ImageAnnotation>>,org.anchoranalysis.io.generator.TransformingGenerator<List<org.anchoranalysis.plugin.annotation.bean.aggregate.ImageAnnotation>,List<org.anchoranalysis.plugin.annotation.bean.aggregate.ImageAnnotation>>,org.anchoranalysis.io.output.writer.ElementWriter<List<org.anchoranalysis.plugin.annotation.bean.aggregate.ImageAnnotation>>
public class AnnotationAggregateCSVGenerator extends org.anchoranalysis.feature.io.csv.table.FeatureTableCSVGenerator<List<org.anchoranalysis.plugin.annotation.bean.aggregate.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
Constructors Constructor Description AnnotationAggregateCSVGenerator()Constructs anAnnotationAggregateCSVGeneratorwith predefined column headers. -
Method Summary
Modifier and Type Method Description protected voidwriteFeaturesToCSV(org.anchoranalysis.io.generator.tabular.CSVWriter writer, List<org.anchoranalysis.plugin.annotation.bean.aggregate.ImageAnnotation> allFeatureResults, List<String> headerNames)Methods inherited from class org.anchoranalysis.feature.io.csv.table.FeatureTableCSVGenerator
writeToFileMethods inherited from class org.anchoranalysis.io.generator.tabular.CSVGenerator
selectFileExtension
-
Constructor Details
-
AnnotationAggregateCSVGenerator
public AnnotationAggregateCSVGenerator()Constructs anAnnotationAggregateCSVGeneratorwith predefined column headers.
-
-
Method Details
-
writeFeaturesToCSV
protected void writeFeaturesToCSV(org.anchoranalysis.io.generator.tabular.CSVWriter writer, List<org.anchoranalysis.plugin.annotation.bean.aggregate.ImageAnnotation> allFeatureResults, List<String> headerNames) throws org.anchoranalysis.io.output.error.OutputWriteFailedException- Specified by:
writeFeaturesToCSVin classorg.anchoranalysis.feature.io.csv.table.FeatureTableCSVGenerator<List<org.anchoranalysis.plugin.annotation.bean.aggregate.ImageAnnotation>>- Throws:
org.anchoranalysis.io.output.error.OutputWriteFailedException
-