Package qupath.ext.braian
Class OverlappingDetections
java.lang.Object
qupath.ext.braian.AbstractDetections
qupath.ext.braian.OverlappingDetections
This class allows to compute and manage double/triple/multiple positive detections.
It does so by leveraging
AbstractDetections
interface-
Field Summary
-
Constructor Summary
ConstructorDescriptionOverlappingDetections
(AbstractDetections control, Collection<AbstractDetections> others, boolean compute, qupath.lib.objects.hierarchy.PathObjectHierarchy hierarchy) Creates an instance of overlapping detectionsOverlappingDetections
(AbstractDetections control, Collection<AbstractDetections> others, qupath.lib.objects.hierarchy.PathObjectHierarchy hierarchy) Creates an instance based on pre-computed overlapping detections -
Method Summary
Modifier and TypeMethodDescriptioncreateAllOverlappingClassNames
(List<String> primitiveClasses) Creates all the names of the possible overlaps between the given PathClasses namesMethods inherited from class qupath.ext.braian.AbstractDetections
applyClassifiers, createContainer, equals, fireUpdate, getChildrenDetections, getContainers, getContainersPathClass, getDetectionsInside, getDetectionsInside, getDetectionsPathClasses, getDiscardedDetectionsPathClass, getHierarchy, getId, getOverlappingObjectIfPresent, isChannelDetection, isCompatibleClassifier, isCompatibleWith, isContainer, isEmpty, toStream
-
Field Details
-
OVERLAP_DELIMITER
- See Also:
-
-
Constructor Details
-
OverlappingDetections
public OverlappingDetections(AbstractDetections control, Collection<AbstractDetections> others, boolean compute, qupath.lib.objects.hierarchy.PathObjectHierarchy hierarchy) throws NoCellContainersFoundException Creates an instance of overlapping detections- Parameters:
control
- the detections used to check whether the other detections are overlapping between them and the controlothers
- the other detectionscompute
- if true, it will delete any previous overlap and compute the overlap between detections. If false, it will try to retrieve pre-computed ovarlappingshierarchy
- where to find/compute the overlapping detections- Throws:
NoCellContainersFoundException
- if no pre-computed overlappings were found in the given hierarchy
-
OverlappingDetections
public OverlappingDetections(AbstractDetections control, Collection<AbstractDetections> others, qupath.lib.objects.hierarchy.PathObjectHierarchy hierarchy) throws NoCellContainersFoundException Creates an instance based on pre-computed overlapping detections- Parameters:
control
- the detections used to check whether the other detections are overlapping between them and the controlothers
- the other detectionshierarchy
- where to find the overlapping detections- Throws:
NoCellContainersFoundException
- if no pre-computed overlappings were found in the given hierarchy
-
-
Method Details
-
createAllOverlappingClassNames
Creates all the names of the possible overlaps between the given PathClasses names- Parameters:
primitiveClasses
- a list of PathClasses names- Returns:
- a list combinations of the given primitiveClasses, delimited by
OVERLAP_DELIMITER
-
getContainersName
- Specified by:
getContainersName
in classAbstractDetections
- Returns:
- the name used by the containers of detections of the instance kind
-