Class CalculateDeriveObjectInput

Object
CalculationPart<FeatureInputSingleObject, FeatureInputStack>
CalculateDeriveObjectInput
All Implemented Interfaces:
ResettableCalculation

public class CalculateDeriveObjectInput extends CalculationPart<FeatureInputSingleObject, FeatureInputStack>
Derives a FeatureInputSingleObject from a FeatureInputStack by extracting an object mask from a specific energy channel.

This class extends CalculationPart to provide functionality for deriving a single object input from a stack input.

  • Constructor Summary

    Constructors
    Constructor
    Description
    CalculateDeriveObjectInput(int energyIndex)
    Creates a new CalculateDeriveObjectInput instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    protected FeatureInputSingleObject
    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

    • CalculateDeriveObjectInput

      public CalculateDeriveObjectInput(int energyIndex)
      Creates a new CalculateDeriveObjectInput instance.
      Parameters:
      energyIndex - The index of the energy channel to extract the object mask from.
  • Method Details

    • execute

      protected FeatureInputSingleObject execute(FeatureInputStack input) throws FeatureCalculationException
      Specified by:
      execute in class CalculationPart<FeatureInputSingleObject, FeatureInputStack>
      Throws:
      FeatureCalculationException
    • equals

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

      protected boolean canEqual(Object other)
    • hashCode

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