Class Intensity
Calculates a statistic from the intensity values covered by a single object-mask in a channel.
Specifically, a histogram of intensity-values is constructed for the region covered by the object in one specific channnel in the energy-stack (specified by energyIndex).
Then a customizable FeatureHistogram
(specified
by item) extracts a statistic from the histogram. By default, the mean is
calculated.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected double
calculateForChannel
(FeatureCalculationInput<FeatureInputSingleObject> input, Channel channel) Calculates the feature value for a specific channel in the energy stack.getItem()
Feature to apply to the histogramboolean
Iff true, zero-valued voxels are excluded from the histogramvoid
setExcludeZero
(boolean excludeZero) Iff true, zero-valued voxels are excluded from the histogramvoid
setItem
(Feature<FeatureInputHistogram> item) Feature to apply to the histogramMethods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.intensity.FeatureEnergyChannel
calculate, getEnergyIndex, setEnergyIndex
Methods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
inputType
Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, 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
-
calculateForChannel
protected double calculateForChannel(FeatureCalculationInput<FeatureInputSingleObject> input, Channel channel) throws FeatureCalculationException Description copied from class:FeatureEnergyChannel
Calculates the feature value for a specific channel in the energy stack.- Specified by:
calculateForChannel
in classFeatureEnergyChannel
- Parameters:
input
- theFeatureCalculationInput
containing theFeatureInputSingleObject
channel
- theChannel
from the energy stack to calculate the feature on- Returns:
- the calculated feature value
- Throws:
FeatureCalculationException
- if the calculation fails
-
getItem
Feature to apply to the histogram -
setItem
Feature to apply to the histogram -
isExcludeZero
public boolean isExcludeZero()Iff true, zero-valued voxels are excluded from the histogram -
setExcludeZero
public void setExcludeZero(boolean excludeZero) Iff true, zero-valued voxels are excluded from the histogram
-