Package qupath.lib.classifiers.object
Class AbstractObjectClassifier<T>
java.lang.Object
qupath.lib.classifiers.object.AbstractObjectClassifier<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
ObjectClassifier<T>
- Direct Known Subclasses:
DnnObjectClassifier
,OpenCVMLClassifier
,OpenCVModelObjectClassifier
Abstract class to help with the creation of object classifiers.
- Author:
- Pete Bankhead
-
Field Summary
Fields inherited from interface qupath.lib.classifiers.object.ObjectClassifier
PROJECT_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
classifyObjects
(ImageData<T> imageData, boolean resetExistingClass) Classify all compatible objects from anImageData
.getCompatibleObjects
(ImageData<T> imageData) Get the objects from anImageData
that are compatible with this classifier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface qupath.lib.classifiers.object.ObjectClassifier
classifyObjects, getMissingFeatures, getPathClasses
-
Constructor Details
-
AbstractObjectClassifier
-
-
Method Details
-
classifyObjects
Description copied from interface:ObjectClassifier
Classify all compatible objects from anImageData
.Note: this method does not typically fire any hierarchy change/object classification events. It is up to the caller to fire these events if required.
- Specified by:
classifyObjects
in interfaceObjectClassifier<T>
- Parameters:
imageData
- data containing the object hierarchyresetExistingClass
-- Returns:
- the number of objects whose classification was changed.
- See Also:
-
getCompatibleObjects
Description copied from interface:ObjectClassifier
Get the objects from anImageData
that are compatible with this classifier.- Specified by:
getCompatibleObjects
in interfaceObjectClassifier<T>
- Parameters:
imageData
-- Returns:
- a collection of compatible objects, or empty list if no compatible objects are found
-