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.FeatureInputStack>
org.anchoranalysis.image.feature.bean.FeatureStack
org.anchoranalysis.plugin.image.feature.bean.stack.intensity.Intensity
public class Intensity
extends org.anchoranalysis.image.feature.bean.FeatureStack
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 Constructor Description Intensity() -
Method Summary
Modifier and Type Method Description protected doublecalculate(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputStack> input)StringdescriptionLong()intgetEnergyIndex()The channel that that forms the histogram.intgetEnergyIndexMask()Optionally, index of another channel that masks the histogram.org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputHistogram>getItem()Feature to apply to the histogram.voidsetEnergyIndex(int energyIndex)The channel that that forms the histogram.voidsetEnergyIndexMask(int energyIndexMask)Optionally, index of another channel that masks the histogram.voidsetItem(org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputHistogram> item)Feature to apply to the histogram.Methods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, 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
-
calculate
protected double calculate(org.anchoranalysis.feature.calculate.FeatureCalculationInput<org.anchoranalysis.image.feature.input.FeatureInputStack> input) throws org.anchoranalysis.feature.calculate.FeatureCalculationException- Specified by:
calculatein classorg.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputStack>- Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException
-
descriptionLong
- Overrides:
descriptionLongin classorg.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputStack>
-
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. -
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.
-