T
- type of initialization for the ImageLabeller
.public class SharedStateFilteredImageOutput<T> extends Object
Constructor and Description |
---|
SharedStateFilteredImageOutput(Outputter baseOutputter,
ImageLabeller<T> filter,
String outputNameMapping,
String outputNameImages) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
T |
getFilterInitialization(Path pathForBinding) |
Optional<Outputter> |
getOutputterFor(String groupIdentifier)
groupIdentifierFor should always called at least once before getOutputManagerFor
|
String |
labelFor(ProvidesStackInput input,
InputOutputContext context)
Determines a particular group-identifier for an input
|
void |
writeRow(String name,
String groupIdentifier) |
public SharedStateFilteredImageOutput(Outputter baseOutputter, ImageLabeller<T> filter, String outputNameMapping, String outputNameImages) throws CreateException
baseOutputter
- filter
- the filter must not yet have been inited()outputNameMapping
- the output-name for the CSV that is created showing the mapping
between inputs and labels.outputNameImages
- the output-name for the labels sub-directory in which copies images
are placed in sub-directories.CreateException
public void close()
public String labelFor(ProvidesStackInput input, InputOutputContext context) throws OperationFailedException
OperationFailedException
public Optional<Outputter> getOutputterFor(String groupIdentifier)
public T getFilterInitialization(Path pathForBinding) throws InitializeException
InitializeException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.