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.
-
Field Summary
Fields inherited from interface qupath.lib.classifiers.object.ObjectClassifier
PROJECT_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintclassifyObjects(ImageData<T> imageData, boolean resetExistingClass) Classify all compatible objects from anImageData.getCompatibleObjects(ImageData<T> imageData) Get the objects from anImageDatathat are compatible with this classifier.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.classifiers.object.ObjectClassifier
classifyObjects, getMissingFeatures, getPathClasses
-
Constructor Details
-
AbstractObjectClassifier
-
-
Method Details
-
classifyObjects
Description copied from interface:ObjectClassifierClassify 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:
classifyObjectsin 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:ObjectClassifierGet the objects from anImageDatathat are compatible with this classifier.- Specified by:
getCompatibleObjectsin interfaceObjectClassifier<T>- Parameters:
imageData-- Returns:
- a collection of compatible objects, or empty list if no compatible objects are found
-