public class ImageCSVLabeller extends ImageLabeller<ImageCSVLabellerInitialization>
Constructor and Description |
---|
ImageCSVLabeller() |
Modifier and Type | Method and Description |
---|---|
Set<String> |
allLabels(ImageCSVLabellerInitialization initialization)
A set of identifiers for all groups that can be outputted by the labeller.
|
DerivePath |
getPathLabel()
Path to a CSV label file (comma-separated, with header, no quotes)
|
ImageCSVLabellerInitialization |
initialize(Path pathForBinding)
Should be called once before calling any other methods
|
String |
labelFor(ImageCSVLabellerInitialization sharedState,
ProvidesStackInput input,
InputOutputContext context)
Determines a particular group-identifier for an input
|
void |
setPathLabel(DerivePath pathLabel)
Path to a CSV label file (comma-separated, with header, no quotes)
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ImageCSVLabellerInitialization initialize(Path pathForBinding) throws InitializeException
ImageLabeller
initialize
in class ImageLabeller<ImageCSVLabellerInitialization>
pathForBinding
- a path that can be used by the labeller to make filePath decisionsInitializeException
public Set<String> allLabels(ImageCSVLabellerInitialization initialization)
ImageLabeller
allLabels
in class ImageLabeller<ImageCSVLabellerInitialization>
public String labelFor(ImageCSVLabellerInitialization sharedState, ProvidesStackInput input, InputOutputContext context) throws OperationFailedException
ImageLabeller
labelFor
in class ImageLabeller<ImageCSVLabellerInitialization>
OperationFailedException
public DerivePath getPathLabel()
The CSV file should have two columns: first column = image id (to match the input-name of an image) second column = a label string
public void setPathLabel(DerivePath pathLabel)
The CSV file should have two columns: first column = image id (to match the input-name of an image) second column = a label string
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.