Class FromImage
Calculates features from a single image.
Each image produces a single row of features.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdditional labels for an input to include (after the identifier, and before any group labels).protected ResultsVectorWithThumbnailcalculateResultsForInput(ProvidesStackInput input, FeatureCalculationContext<FeatureList<FeatureInputStack>> context) Calculates feature-results for a particular input.Optionally defines an energy-stack for feature calculation (if not set, the energy-stack is considered to be the input stacks).Method to generate a thumbnail for images.booleanincludeGroupInExperiment(boolean groupGeneratorDefined) Determines if group columns should be added to the CSV exports and other group exports may occur in sub-directories.Specifies the highest class(es) that will function as a valid input.voidsetStackEnergy(StackProvider stackEnergy) Optionally defines an energy-stack for feature calculation (if not set, the energy-stack is considered to be the input stacks).voidsetThumbnail(ThumbnailFromStack thumbnail) Method to generate a thumbnail for images.Methods inherited from class org.anchoranalysis.plugin.image.task.bean.feature.source.SingleRowPerInput
calculateAndOutput, createExporter, headersMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromImage
public FromImage()Creates a newFromImageinstance.
-
-
Method Details
-
inputTypesExpected
Description copied from class:FeatureSourceSpecifies the highest class(es) that will function as a valid input.This is usually the class of T (or sometimes the absolute base class
InputFromManager)- Specified by:
inputTypesExpectedin classFeatureSource<ProvidesStackInput,FeatureList<FeatureInputStack>, FeatureInputStack> - Returns:
- an
InputTypesExpectedobject specifying the expected input types
-
includeGroupInExperiment
public boolean includeGroupInExperiment(boolean groupGeneratorDefined) Description copied from class:FeatureSourceDetermines if group columns should be added to the CSV exports and other group exports may occur in sub-directories.- Specified by:
includeGroupInExperimentin classFeatureSource<ProvidesStackInput,FeatureList<FeatureInputStack>, FeatureInputStack> - Parameters:
groupGeneratorDefined- has a group-generator been defined for this experiment?- Returns:
- true if a group-generator has been defined, false otherwise
-
calculateResultsForInput
protected ResultsVectorWithThumbnail calculateResultsForInput(ProvidesStackInput input, FeatureCalculationContext<FeatureList<FeatureInputStack>> context) throws NamedFeatureCalculateException Description copied from class:SingleRowPerInputCalculates feature-results for a particular input.- Specified by:
calculateResultsForInputin classSingleRowPerInput<ProvidesStackInput,FeatureInputStack> - Parameters:
input- the input.context- context for calculating features.- Returns:
- the results, with optionally associated thumbnail.
- Throws:
NamedFeatureCalculateException- if any feature cannot calculate.
-
additionalLabelsFor
Description copied from class:SingleRowPerInputAdditional labels for an input to include (after the identifier, and before any group labels).These should always correspond (when appended to the identifier) exactly to the
nonGroupHeaders.- Specified by:
additionalLabelsForin classSingleRowPerInput<ProvidesStackInput,FeatureInputStack> - Parameters:
input- the input.- Returns:
- any additional labels for the input.
-
getStackEnergy
Optionally defines an energy-stack for feature calculation (if not set, the energy-stack is considered to be the input stacks). -
setStackEnergy
Optionally defines an energy-stack for feature calculation (if not set, the energy-stack is considered to be the input stacks). -
getThumbnail
Method to generate a thumbnail for images. -
setThumbnail
Method to generate a thumbnail for images.
-