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 newCalculateHistogramMasked
instance. -
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 newCalculateHistogramMasked
instance.- 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:CalculationPart
This performs the actual calculation when needed. It should only be called once, untilCalculationPart.invalidate()
is called.- Specified by:
execute
in 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:
equals
in classCalculationPart<Histogram,
FeatureInputStack>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCode
in classCalculationPart<Histogram,
FeatureInputStack>
-