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 SummaryFields inherited from interface qupath.lib.classifiers.object.ObjectClassifierPROJECT_LOCATION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.classifiers.object.ObjectClassifierclassifyObjects, getMissingFeatures, getPathClasses
- 
Constructor Details- 
AbstractObjectClassifier
 
- 
- 
Method Details- 
classifyObjectsDescription 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 interface- ObjectClassifier<T>
- Parameters:
- imageData- data containing the object hierarchy
- resetExistingClass-
- Returns:
- the number of objects whose classification was changed.
- See Also:
 
- 
getCompatibleObjectsDescription copied from interface:ObjectClassifierGet the objects from anImageDatathat are compatible with this classifier.- Specified by:
- getCompatibleObjectsin interface- ObjectClassifier<T>
- Parameters:
- imageData-
- Returns:
- a collection of compatible objects, or empty list if no compatible objects are found
 
 
-