Class Intensity
The intensity of a particular channel of the stack, by default the mean-intensity.
Alternative statistics to the mean can be calculated via the item bean-field.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
Calculates a value for some input.A long human-readable description of the feature and some or all of its parameterization.int
The channel that that forms the histogram.int
Optionally, index of another channel that masks the histogram. -1 disables.getItem()
Feature to apply to the histogram.void
setEnergyIndex
(int energyIndex) The channel that that forms the histogram.void
setEnergyIndexMask
(int energyIndexMask) Optionally, index of another channel that masks the histogram. -1 disables.void
setItem
(Feature<FeatureInputHistogram> item) Feature to apply to the histogram.Methods inherited from class org.anchoranalysis.image.feature.bean.FeatureStack
inputType
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
Intensity
public Intensity()
-
-
Method Details
-
calculate
protected double calculate(FeatureCalculationInput<FeatureInputStack> input) throws FeatureCalculationException Description copied from class:Feature
Calculates a value for some input.- Specified by:
calculate
in classFeature<FeatureInputStack>
- Parameters:
input
- the input to the calculation.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException
- if the calculation cannot successfully complete.
-
descriptionLong
Description copied from class:Feature
A long human-readable description of the feature and some or all of its parameterization.This can be overwritten to create an alternative description for features. By default string returned by
Feature.describeBean()
is used.- Overrides:
descriptionLong
in classFeature<FeatureInputStack>
- Returns:
- the description.
-
getItem
Feature to apply to the histogram. -
setItem
Feature to apply to the histogram. -
getEnergyIndex
public int getEnergyIndex()The channel that that forms the histogram. -
setEnergyIndex
public void setEnergyIndex(int energyIndex) The channel that that forms the histogram. -
getEnergyIndexMask
public int getEnergyIndexMask()Optionally, index of another channel that masks the histogram. -1 disables. -
setEnergyIndexMask
public void setEnergyIndexMask(int energyIndexMask) Optionally, index of another channel that masks the histogram. -1 disables.
-