Class AnnotationComparisonInput<T extends InputFromManager>

Object
InputFromManagerDelegate<T>
AnnotationComparisonInput<T>
Type Parameters:
T - type of input from manager.
All Implemented Interfaces:
InputFromManager

public class AnnotationComparisonInput<T extends InputFromManager> extends InputFromManagerDelegate<T>
Input for annotation comparison, containing sources to compare and associated metadata.
  • Constructor Details

    • AnnotationComparisonInput

      public AnnotationComparisonInput(T input, io.vavr.Tuple2<ComparableSource,ComparableSource> comparers, io.vavr.Tuple2<String,String> names, StackReader stackReader)
      Creates an annotation comparison input.
      Parameters:
      input - the input from manager.
      comparers - the two ComparableSources to compare.
      names - names associated with the two sources being compared.
      stackReader - the StackReader to use for reading image stacks.
  • Method Details

    • getComparerMultiplex

      public ComparableSource getComparerMultiplex(boolean left)
      Gets one of the two ComparableSources based on a boolean flag.
      Parameters:
      left - if true, returns the left comparer; if false, returns the right comparer.
      Returns:
      the selected ComparableSource.
    • getInput

      public T getInput()
      Gets the input from manager.
      Returns:
      the input of type T.
    • getComparers

      public io.vavr.Tuple2<ComparableSource,ComparableSource> getComparers()
      The two ComparableSources to compare.
    • getNames

      public io.vavr.Tuple2<String,String> getNames()
      Names associated with the two sources being compared.
    • getStackReader

      public StackReader getStackReader()
      The StackReader to use for reading image stacks.