public class Intensity extends FeatureStack
Alternative statistics to the mean can be calculated via the item bean-field.
Constructor and Description |
---|
Intensity() |
Modifier and Type | Method and Description |
---|---|
protected double |
calculate(FeatureCalculationInput<FeatureInputStack> input)
Calculates a value for some input.
|
String |
descriptionLong()
A long human-readable description of the feature and some or all of its parameterization.
|
int |
getEnergyIndex()
The channel that that forms the histogram.
|
int |
getEnergyIndexMask()
Optionally, index of another channel that masks the histogram.
|
Feature<FeatureInputHistogram> |
getItem()
Feature to apply to the histogram.
|
void |
setEnergyIndex(int energyIndex)
The channel that that forms the histogram.
|
void |
setEnergyIndexMask(int energyIndexMask)
Optionally, index of another channel that masks the histogram.
|
void |
setItem(Feature<FeatureInputHistogram> item)
Feature to apply to the histogram.
|
inputType
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
protected double calculate(FeatureCalculationInput<FeatureInputStack> input) throws FeatureCalculationException
Feature
calculate
in class Feature<FeatureInputStack>
input
- the input to the calculation.FeatureCalculationException
- if the calculation cannot successfully complete.public String descriptionLong()
Feature
This can be overwritten to create an alternative description for features. By default
string returned by Feature.describeBean()
is used.
descriptionLong
in class Feature<FeatureInputStack>
public Feature<FeatureInputHistogram> getItem()
public void setItem(Feature<FeatureInputHistogram> item)
public int getEnergyIndex()
public void setEnergyIndex(int energyIndex)
public int getEnergyIndexMask()
public void setEnergyIndexMask(int energyIndexMask)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.