Package qupath.opencv.features
Class DelaunayTriangulation
java.lang.Object
qupath.opencv.features.DelaunayTriangulation
- All Implemented Interfaces:
- PathObjectConnectionGroup
Deprecated.
Compute Delaunay triangulation using OpenCV.
- 
Constructor SummaryConstructorsConstructorDescriptionDelaunayTriangulation(List<PathObject> pathObjects, double pixelWidth, double pixelHeight, double distanceThresholdPixels, boolean limitByClass) Deprecated.Compute Delaunay triangulation - optionally omitting links above a fixed distance.
- 
Method SummaryModifier and TypeMethodDescriptionvoidDeprecated.Compute mean measurements from clustering all connected objects.voidDeprecated.Add Delaunay measurements to each pathObject.booleancontainsObject(PathObject pathObject) Deprecated.Returns true if the specified PathObject is contained within this group.Deprecated.Get a list of PathObjects that are connected to each other in this triangulation.Collection<double[]> getConnectedNodes(Collection<PathObject> pathObjects, Collection<double[]> connections) Deprecated.getConnectedNodes(PathObject pathObject, Collection<PathObject> list) Deprecated.Get all the PathObjects immediately connected to the specified object, adding the points into a collection (or creating a new one).getConnectedObjects(PathObject pathObject) Deprecated.Get all the connections to a specified PathObject stored in this group.Deprecated.Get an unmodifiable collection containing all the PathObjects contained within this group.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.objects.PathObjectConnectionGroupgetPathObjectsForRegion
- 
Constructor Details- 
DelaunayTriangulationpublic DelaunayTriangulation(List<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- 
getConnectedObjectsDeprecated.Description copied from interface:PathObjectConnectionGroupGet all the connections to a specified PathObject stored in this group.If containsObject(pathObject) returns null, this will return an empty list (and not null). - Specified by:
- getConnectedObjectsin interface- PathObjectConnectionGroup
- Parameters:
- pathObject-
- Returns:
 
- 
getPathObjectsDeprecated.Description copied from interface:PathObjectConnectionGroupGet an unmodifiable collection containing all the PathObjects contained within this group.- Specified by:
- getPathObjectsin interface- PathObjectConnectionGroup
- Returns:
 
- 
getConnectedNodes@Deprecated public Collection<double[]> getConnectedNodes(Collection<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:
 
- 
getConnectedNodesDeprecated.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:
 
- 
getConnectedClustersDeprecated.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:
 
- 
addClusterMeasurementspublic void addClusterMeasurements()Deprecated.Compute mean measurements from clustering all connected objects.
- 
addNodeMeasurementspublic void addNodeMeasurements()Deprecated.Add Delaunay measurements to each pathObject.
- 
containsObjectDeprecated.Description copied from interface:PathObjectConnectionGroupReturns true if the specified PathObject is contained within this group.- Specified by:
- containsObjectin interface- PathObjectConnectionGroup
- Parameters:
- pathObject-
- Returns:
 
 
- 
DelaunayTools.Subdivision