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 doublecalculateForChannel(FeatureCalculationInput<FeatureInputSingleObject> input, Channel channel) Calculates the feature value for a specific channel in the energy stack.getItem()Feature to apply to the histogrambooleanIff true, zero-valued voxels are excluded from the histogramvoidsetExcludeZero(boolean excludeZero) Iff true, zero-valued voxels are excluded from the histogramvoidsetItem(Feature<FeatureInputHistogram> item) Feature to apply to the histogramMethods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.intensity.FeatureEnergyChannel
calculate, getEnergyIndex, setEnergyIndexMethods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
inputTypeMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods 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:FeatureEnergyChannelCalculates the feature value for a specific channel in the energy stack.- Specified by:
calculateForChannelin classFeatureEnergyChannel- Parameters:
input- theFeatureCalculationInputcontaining theFeatureInputSingleObjectchannel- theChannelfrom 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
-