Record Class CrossoverFinder.CrossoverEvent

java.lang.Object
java.lang.Record
sc.fiji.snt.util.CrossoverFinder.CrossoverEvent
Record Components:
x - X-coordinate of crossover center in real world units
y - Y-coordinate of crossover center in real world units
z - Z-coordinate of crossover center in real world units
participants - Unique paths taking part in the crossover
medianAngleDeg - Median crossing angle between local tangents
medianMinDist - Median segment-to-segment closest distance (real world units)
indexWindow - Min/max of node indices per path near the event
Enclosing class:
CrossoverFinder

public static record CrossoverFinder.CrossoverEvent(double x, double y, double z, Set<Path> participants, double medianAngleDeg, double medianMinDist, Map<Path,IntSummaryStatistics> indexWindow) extends Record
One detected crossover event.
  • Constructor Details

    • CrossoverEvent

      public CrossoverEvent(double x, double y, double z, Set<Path> participants, double medianAngleDeg, double medianMinDist, Map<Path,IntSummaryStatistics> indexWindow)
      Creates an instance of a CrossoverEvent record class.
      Parameters:
      x - the value for the x record component
      y - the value for the y record component
      z - the value for the z record component
      participants - the value for the participants record component
      medianAngleDeg - the value for the medianAngleDeg record component
      medianMinDist - the value for the medianMinDist record component
      indexWindow - the value for the indexWindow record component
  • Method Details

    • xyzct

      public double[] xyzct()
      The XYZCT locations (ImagePlus nomenclature with ZCT 1-based indices) of the event center. If participants are associated with multiple channels/frames, their mean position is retrieved.
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • x

      public double x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public double y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • z

      public double z()
      Returns the value of the z record component.
      Returns:
      the value of the z record component
    • participants

      public Set<Path> participants()
      Returns the value of the participants record component.
      Returns:
      the value of the participants record component
    • medianAngleDeg

      public double medianAngleDeg()
      Returns the value of the medianAngleDeg record component.
      Returns:
      the value of the medianAngleDeg record component
    • medianMinDist

      public double medianMinDist()
      Returns the value of the medianMinDist record component.
      Returns:
      the value of the medianMinDist record component
    • indexWindow

      public Map<Path,IntSummaryStatistics> indexWindow()
      Returns the value of the indexWindow record component.
      Returns:
      the value of the indexWindow record component