Class Intensity
Object
AnchorBean<Feature<FeatureInputStack>>
InitializableBean<Feature<FeatureInputStack>, FeatureInitialization>
Feature<FeatureInputStack>
FeatureStack
Intensity
public class Intensity
extends 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecalculate(FeatureCalculationInput<FeatureInputStack> input) intThe channel that that forms the histogram.intOptionally, index of another channel that masks the histogram.Feature<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(Feature<FeatureInputHistogram> item) Feature to apply to the histogram.Methods inherited from class org.anchoranalysis.image.feature.bean.FeatureStack
inputTypeMethods 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, isInitializedMethods 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 - Specified by:
calculatein classFeature<FeatureInputStack>- Throws:
FeatureCalculationException
-
descriptionLong
- Overrides:
descriptionLongin classFeature<FeatureInputStack>
-
getItem
public Feature<FeatureInputHistogram> getItem()Feature to apply to the histogram. -
setItem
public void setItem(Feature<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.
-