Class CalculateHistogramMasked
Object
CalculationPart<Histogram, FeatureInputStack>
CalculateHistogramMasked
- All Implemented Interfaces:
ResettableCalculation
public class CalculateHistogramMasked
extends CalculationPart<Histogram, FeatureInputStack>
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
protected Histogram execute(FeatureInputStack input) throws FeatureCalculationException - Specified by:
executein classCalculationPart<Histogram, FeatureInputStack>- Throws:
FeatureCalculationException
-
equals
- Specified by:
equalsin classCalculationPart<Histogram, FeatureInputStack>
-
canEqual
-
hashCode
public int hashCode()- Specified by:
hashCodein classCalculationPart<Histogram, FeatureInputStack>
-