Class CalculateHistogramMasked
- All Implemented Interfaces:
ResettableCalculation
Calculated a histogram for a specific region on a channel, as identified by a mask in another
channel
-
Constructor Summary
ConstructorsConstructorDescriptionCalculateHistogramMasked(int energyIndexSignal, int energyIndexMask) Creates a newCalculateHistogramMaskedinstance. -
Method Summary
Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart
getOrCalculate, hasCachedResult, invalidate
-
Constructor Details
-
CalculateHistogramMasked
public CalculateHistogramMasked(int energyIndexSignal, int energyIndexMask) Creates a newCalculateHistogramMaskedinstance.- Parameters:
energyIndexSignal- the index in the energy-stack of the channel part of whose signal will form a histogramenergyIndexMask- the index in the energy-stack of a channel which is a binary mask (0=off, 255=on)
-
-
Method Details
-
execute
Description copied from class:CalculationPartThis performs the actual calculation when needed. It should only be called once, untilCalculationPart.invalidate()is called.- Specified by:
executein classCalculationPart<Histogram,FeatureInputStack> - Parameters:
input- the input to the calculation.- Returns:
- the result of the calculation.
- Throws:
FeatureCalculationException- if the calculation cannot be successfully completed.
-
equals
- Specified by:
equalsin classCalculationPart<Histogram,FeatureInputStack>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPart<Histogram,FeatureInputStack>
-