public class FromImage extends SingleRowPerInput<ProvidesStackInput,FeatureInputStack>
Each image produces a single row of features.
Constructor and Description |
---|
FromImage() |
Modifier and Type | Method and Description |
---|---|
protected Optional<String[]> |
additionalLabelsFor(ProvidesStackInput input)
Additional labels for an input to include (after the identifier, and before any group
labels).
|
protected ResultsVectorWithThumbnail |
calculateResultsForInput(ProvidesStackInput input,
FeatureCalculationContext<FeatureList<FeatureInputStack>> context)
Calculates feature-results for a particular input.
|
StackProvider |
getStackEnergy()
Optionally defines a energy-stack for feature calculation (if not set, the energy-stack is
considered to be the input stacks).
|
ThumbnailFromStack |
getThumbnail()
Method to generate a thumbnail for images.
|
boolean |
includeGroupInExperiment(boolean groupGeneratorDefined)
Iff true, group columns are added to the CSV exports, and other group exports may occur in
sub-directories.
|
InputTypesExpected |
inputTypesExpected()
Highest class(es) that will function as a valid input.
|
void |
setStackEnergy(StackProvider stackEnergy)
Optionally defines a energy-stack for feature calculation (if not set, the energy-stack is
considered to be the input stacks).
|
void |
setThumbnail(ThumbnailFromStack thumbnail)
Method to generate a thumbnail for images.
|
calculateAndOutput, createExporter, headers
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public InputTypesExpected inputTypesExpected()
FeatureSource
This is usually the class of T (or sometimes the absolute base class InputFromManager)
inputTypesExpected
in class FeatureSource<ProvidesStackInput,FeatureList<FeatureInputStack>,FeatureInputStack>
public boolean includeGroupInExperiment(boolean groupGeneratorDefined)
FeatureSource
includeGroupInExperiment
in class FeatureSource<ProvidesStackInput,FeatureList<FeatureInputStack>,FeatureInputStack>
groupGeneratorDefined
- has a group-generator been defined for this experiment?protected ResultsVectorWithThumbnail calculateResultsForInput(ProvidesStackInput input, FeatureCalculationContext<FeatureList<FeatureInputStack>> context) throws NamedFeatureCalculateException
SingleRowPerInput
calculateResultsForInput
in class SingleRowPerInput<ProvidesStackInput,FeatureInputStack>
input
- the input.context
- context for calculating features.NamedFeatureCalculateException
- if any feature cannot calculate.protected Optional<String[]> additionalLabelsFor(ProvidesStackInput input)
SingleRowPerInput
These should always correspond (when appended to the identifier) exactly to the nonGroupHeaders
.
additionalLabelsFor
in class SingleRowPerInput<ProvidesStackInput,FeatureInputStack>
input
- the input.public StackProvider getStackEnergy()
public void setStackEnergy(StackProvider stackEnergy)
public ThumbnailFromStack getThumbnail()
public void setThumbnail(ThumbnailFromStack thumbnail)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.