Package qupath.lib.classifiers.object
Class ObjectClassifiers.ClassifyByMeasurementBuilder<T>
java.lang.Object
qupath.lib.classifiers.object.ObjectClassifiers.ClassifyByMeasurementBuilder<T>
- Type Parameters:
T
-
- Enclosing class:
ObjectClassifiers
Builder to create a simple
ObjectClassifier
that assigns a classification based upon whether the
measurement of an object is above, equal to or below a specified threshold.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSet the classification (by name) for objects for which the specified measurement has a value above the threshold.Set the classification for objects for which the specified measurement has a value above the threshold.aboveEquals
(String pathClassName) Set the classification (by name) for objects for which the specified measurement has a value above or equal to the threshold.aboveEquals
(PathClass pathClass) Set the classification for objects for which the specified measurement has a value above or equal to the threshold.Set the classification (by name) for objects for which the specified measurement has a value below the threshold.Set the classification for objects for which the specified measurement has a value below the threshold.belowEquals
(String pathClassName) Set the classification (by name) for objects for which the specified measurement has a value below or equal to the threshold.belowEquals
(PathClass pathClass) Set the classification for objects for which the specified measurement has a value below or equal to the threshold.build()
Build the classifier defined by the parameters of this builder.cells()
Set the filter to accept cell objects only.Set the filter to accept all detection objects only.Set the classification (by name) for objects for which the specified measurement has a value exactly equal to the threshold.Set the classification for objects for which the specified measurement has a value exactly equal to the threshold.filter
(PathObjectFilter filter) Define the filter used to identify objects compatible with this classifier.threshold
(double threshold) Set the threshold value used for the classification.tiles()
Set the filter to accept tile objects only.
-
Constructor Details
-
ClassifyByMeasurementBuilder
Constructor.- Parameters:
measurementName
- name of the measurement used for classification (should be present within the object'sMeasurementList
).
-
-
Method Details
-
filter
Define the filter used to identify objects compatible with this classifier.- Parameters:
filter
-- Returns:
- this builder
-
cells
Set the filter to accept cell objects only.- Returns:
- this builder
-
tiles
Set the filter to accept tile objects only.- Returns:
- this builder
-
detections
Set the filter to accept all detection objects only.- Returns:
- this builder
-
threshold
Set the threshold value used for the classification.- Parameters:
threshold
-- Returns:
- this builder
-
above
Set the classification (by name) for objects for which the specified measurement has a value above the threshold.- Parameters:
pathClassName
-- Returns:
- this builder
- See Also:
-
aboveEquals
Set the classification (by name) for objects for which the specified measurement has a value above or equal to the threshold.- Parameters:
pathClassName
-- Returns:
- this builder
- See Also:
-
belowEquals
Set the classification (by name) for objects for which the specified measurement has a value below or equal to the threshold.- Parameters:
pathClassName
-- Returns:
- this builder
- See Also:
-
below
Set the classification (by name) for objects for which the specified measurement has a value below the threshold.- Parameters:
pathClassName
-- Returns:
- this builder
- See Also:
-
equalTo
Set the classification (by name) for objects for which the specified measurement has a value exactly equal to the threshold.- Parameters:
pathClassName
-- Returns:
- this builder
- See Also:
-
above
Set the classification for objects for which the specified measurement has a value above the threshold.- Parameters:
pathClass
-- Returns:
- this builder
- See Also:
-
aboveEquals
Set the classification for objects for which the specified measurement has a value above or equal to the threshold.- Parameters:
pathClass
-- Returns:
- this builder
- See Also:
-
belowEquals
Set the classification for objects for which the specified measurement has a value below or equal to the threshold.- Parameters:
pathClass
-- Returns:
- this builder
- See Also:
-
below
Set the classification for objects for which the specified measurement has a value below the threshold.- Parameters:
pathClass
-- Returns:
- this builder
- See Also:
-
equalTo
Set the classification for objects for which the specified measurement has a value exactly equal to the threshold.- Parameters:
pathClass
-- Returns:
- this builder
- See Also:
-
build
Build the classifier defined by the parameters of this builder.- Returns:
- the object classifier
-