Class Intensity
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
org.anchoranalysis.plugin.image.feature.bean.object.single.intensity.FeatureEnergyChannel
org.anchoranalysis.plugin.image.feature.bean.object.single.intensity.Intensity
public class Intensity extends FeatureEnergyChannel
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 Constructor Description Intensity() -
Method Summary
Modifier and Type Method Description protected doublecalculateForChannel(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> input, org.anchoranalysis.image.core.channel.Channel channel)Calculates the feature value for a specific channel in the energy stack.org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputHistogram>getItem()Feature to apply to the histogrambooleanisExcludeZero()Iff true, zero-valued voxels are excluded from the histogramvoidsetExcludeZero(boolean excludeZero)Iff true, zero-valued voxels are excluded from the histogramvoidsetItem(org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.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, isInitialized
-
Constructor Details
-
Intensity
public Intensity()
-
-
Method Details
-
calculateForChannel
protected double calculateForChannel(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> input, org.anchoranalysis.image.core.channel.Channel channel) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionDescription 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:
org.anchoranalysis.feature.calculate.FeatureCalculationException- if the calculation fails
-
getItem
public org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputHistogram> getItem()Feature to apply to the histogram -
setItem
public void setItem(org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputHistogram> item)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
-