T
- shared-statepublic abstract class ImageLabeller<T> extends AnchorBean<ImageLabeller<T>>
e.g. this can be used to associate labels with images for training or evaluation in a machine-learning problem.
Constructor and Description |
---|
ImageLabeller() |
Modifier and Type | Method and Description |
---|---|
abstract Set<String> |
allLabels(T initialization)
A set of identifiers for all groups that can be outputted by the labeller.
|
abstract T |
initialize(Path pathForBinding)
Should be called once before calling any other methods
|
abstract String |
labelFor(T sharedState,
ProvidesStackInput input,
InputOutputContext context)
Determines a particular group-identifier for an input
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public abstract T initialize(Path pathForBinding) throws InitializeException
pathForBinding
- a path that can be used by the labeller to make filePath decisionsInitializeException
public abstract Set<String> allLabels(T initialization)
public abstract String labelFor(T sharedState, ProvidesStackInput input, InputOutputContext context) throws OperationFailedException
OperationFailedException
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.