Record Class PartialClassifier<T>
java.lang.Object
java.lang.Record
qupath.ext.braian.PartialClassifier<T>
- Record Components:
classifier- an object classifierannotations- the annotations to which contained detection solely apply theclassifier. Ifnull, it applies it to the whole image.
public record PartialClassifier<T>(qupath.lib.classifiers.object.ObjectClassifier<T> classifier, Collection<qupath.lib.objects.PathAnnotationObject> annotations)
extends Record
Creates a classifier to apply to an instance of
AbstractDetections- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPartialClassifier(qupath.lib.classifiers.object.ObjectClassifier<T> classifier, Collection<qupath.lib.objects.PathAnnotationObject> annotations) Creates an instance of aPartialClassifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionCollection<qupath.lib.objects.PathAnnotationObject> Returns the value of theannotationsrecord component.qupath.lib.classifiers.object.ObjectClassifier<T> Returns the value of theclassifierrecord component.booleanfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PartialClassifier
public PartialClassifier(qupath.lib.classifiers.object.ObjectClassifier<T> classifier, Collection<qupath.lib.objects.PathAnnotationObject> annotations) Creates an instance of aPartialClassifierrecord class.- Parameters:
classifier- the value for theclassifierrecord componentannotations- the value for theannotationsrecord component
-
-
Method Details
-
coversFullImage
public boolean coversFullImage()- Returns:
- true, if the partial classifier covers the whole whole image, thus causing all detections to be classified
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
classifier
Returns the value of theclassifierrecord component.- Returns:
- the value of the
classifierrecord component
-
annotations
Returns the value of theannotationsrecord component.- Returns:
- the value of the
annotationsrecord component
-