Class DelaunayTriangulation

java.lang.Object
qupath.opencv.features.DelaunayTriangulation
All Implemented Interfaces:
qupath.lib.objects.PathObjectConnectionGroup

@Deprecated public class DelaunayTriangulation extends Object implements qupath.lib.objects.PathObjectConnectionGroup
Deprecated.
v0.6.0, to be replaced by DelaunayTools.Subdivision
Compute Delaunay triangulation using OpenCV.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DelaunayTriangulation(List<qupath.lib.objects.PathObject> pathObjects, double pixelWidth, double pixelHeight, double distanceThresholdPixels, boolean limitByClass)
    Deprecated.
    Compute Delaunay triangulation - optionally omitting links above a fixed distance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    Compute mean measurements from clustering all connected objects.
    void
    Deprecated.
    Add Delaunay measurements to each pathObject.
    boolean
    containsObject(qupath.lib.objects.PathObject pathObject)
    Deprecated.
     
    List<Set<qupath.lib.objects.PathObject>>
    Deprecated.
    Get a list of PathObjects that are connected to each other in this triangulation.
    Collection<double[]>
    getConnectedNodes(Collection<qupath.lib.objects.PathObject> pathObjects, Collection<double[]> connections)
    Deprecated.
    Collection<qupath.lib.objects.PathObject>
    getConnectedNodes(qupath.lib.objects.PathObject pathObject, Collection<qupath.lib.objects.PathObject> list)
    Deprecated.
    Get all the PathObjects immediately connected to the specified object, adding the points into a collection (or creating a new one).
    List<qupath.lib.objects.PathObject>
    getConnectedObjects(qupath.lib.objects.PathObject pathObject)
    Deprecated.
     
    Collection<qupath.lib.objects.PathObject>
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface qupath.lib.objects.PathObjectConnectionGroup

    getPathObjectsForRegion
  • Constructor Details

    • DelaunayTriangulation

      public DelaunayTriangulation(List<qupath.lib.objects.PathObject> pathObjects, double pixelWidth, double pixelHeight, double distanceThresholdPixels, boolean limitByClass)
      Deprecated.
      Compute Delaunay triangulation - optionally omitting links above a fixed distance.
      Parameters:
      pathObjects -
      pixelWidth -
      pixelHeight -
      distanceThresholdPixels - - Note, this is in *pixels* (and not scaled according to pixelWidth & pixelHeight)
      limitByClass -
  • Method Details

    • getConnectedObjects

      public List<qupath.lib.objects.PathObject> getConnectedObjects(qupath.lib.objects.PathObject pathObject)
      Deprecated.
      Specified by:
      getConnectedObjects in interface qupath.lib.objects.PathObjectConnectionGroup
    • getPathObjects

      public Collection<qupath.lib.objects.PathObject> getPathObjects()
      Deprecated.
      Specified by:
      getPathObjects in interface qupath.lib.objects.PathObjectConnectionGroup
    • getConnectedNodes

      @Deprecated public Collection<double[]> getConnectedNodes(Collection<qupath.lib.objects.PathObject> pathObjects, Collection<double[]> connections)
      Deprecated.
      Get connected nodes. Returned as a list where pairs are consecutive, i.e. get(i) links to get(i+1) (although get(i+1) doesn't necessarily link to get(i+2)...)
      Parameters:
      pathObjects -
      connections -
      Returns:
    • getConnectedNodes

      public Collection<qupath.lib.objects.PathObject> getConnectedNodes(qupath.lib.objects.PathObject pathObject, Collection<qupath.lib.objects.PathObject> list)
      Deprecated.
      Get all the PathObjects immediately connected to the specified object, adding the points into a collection (or creating a new one).
      Parameters:
      pathObject -
      list -
      Returns:
    • getConnectedClusters

      public List<Set<qupath.lib.objects.PathObject>> getConnectedClusters()
      Deprecated.
      Get a list of PathObjects that are connected to each other in this triangulation. Warning: This list is recomputed on every call, therefore references should be cached by the caller if necessary to avoid too much recomputation.
      Returns:
    • addClusterMeasurements

      public void addClusterMeasurements()
      Deprecated.
      Compute mean measurements from clustering all connected objects.
    • addNodeMeasurements

      public void addNodeMeasurements()
      Deprecated.
      Add Delaunay measurements to each pathObject.
    • containsObject

      public boolean containsObject(qupath.lib.objects.PathObject pathObject)
      Deprecated.
      Specified by:
      containsObject in interface qupath.lib.objects.PathObjectConnectionGroup