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

    Constructors
    Constructor
    Description
    CalculateHistogramMasked(int energyIndexSignal, int energyIndexMask)
    Creates a new CalculateHistogramMasked instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    protected Histogram
    execute(FeatureInputStack input)
     
    int
     

    Methods inherited from class org.anchoranalysis.feature.calculate.part.CalculationPart

    getOrCalculate, hasCachedResult, invalidate

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CalculateHistogramMasked

      public CalculateHistogramMasked(int energyIndexSignal, int energyIndexMask)
      Creates a new CalculateHistogramMasked instance.
      Parameters:
      energyIndexSignal - the index in the energy-stack of the channel part of whose signal will form a histogram
      energyIndexMask - 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:
      execute in class CalculationPart<Histogram, FeatureInputStack>
      Throws:
      FeatureCalculationException
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class CalculationPart<Histogram, FeatureInputStack>
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class CalculationPart<Histogram, FeatureInputStack>