Interface SNTPoint

All Known Implementing Classes:
Path.PathNode, PointInCanvas, PointInImage, SeedPoint, ShollPoint, SWCPoint

public interface SNTPoint
Classes extend this interface implement a point in a 3D space, always using real world coordinates.
Author:
Tiago Ferreira
  • Method Details

    • getX

      double getX()
      Returns:
      the X-coordinate of the point
    • getY

      double getY()
      Returns:
      the Y-coordinate of the point
    • getZ

      double getZ()
      Returns:
      the Z-coordinate of the point
    • getCoordinateOnAxis

      double getCoordinateOnAxis(int axis)
      Returns:
      the coordinate on the specified axis
    • setAnnotation

      void setAnnotation(BrainAnnotation annotation)
      Assigns a neuropil annotation (e.g., atlas compartment) to this point.
      Parameters:
      annotation - the annotation to be assigned to this point
    • getAnnotation

      BrainAnnotation getAnnotation()
      Returns:
      the neuropil annotation assigned to this point
    • setHemisphere

      void setHemisphere(char lr)
    • getHemisphere

      char getHemisphere()
    • average

      static PointInImage average(Collection<? extends SNTPoint> points)
      Computes the average position of a collection of SNTPoints.
      Parameters:
      points - the collection of points to average
      Returns:
      the average point, or null if the collection is null or empty
    • of

      static PointInImage of(Number x, Number y, Number z)
      Script friendly method for instantiating a new point.
      Parameters:
      x - the X coordinate
      y - the Y coordinate
      z - the Z coordinate
    • of

      static PointInImage of(Number[] coords)