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 SummaryConstructors
- 
Method SummaryModifier 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- 
ClassifyByMeasurementBuilderConstructor.- Parameters:
- measurementName- name of the measurement used for classification (should be present within the object's- MeasurementList).
 
 
- 
- 
Method Details- 
filterDefine the filter used to identify objects compatible with this classifier.- Parameters:
- filter-
- Returns:
- this builder
 
- 
cellsSet the filter to accept cell objects only.- Returns:
- this builder
 
- 
tilesSet the filter to accept tile objects only.- Returns:
- this builder
 
- 
detectionsSet the filter to accept all detection objects only.- Returns:
- this builder
 
- 
thresholdSet the threshold value used for the classification.- Parameters:
- threshold-
- Returns:
- this builder
 
- 
aboveSet the classification (by name) for objects for which the specified measurement has a value above the threshold.- Parameters:
- pathClassName-
- Returns:
- this builder
- See Also:
 
- 
aboveEqualsSet 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:
 
- 
belowEqualsSet 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:
 
- 
belowSet the classification (by name) for objects for which the specified measurement has a value below the threshold.- Parameters:
- pathClassName-
- Returns:
- this builder
- See Also:
 
- 
equalToSet 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:
 
- 
aboveSet the classification for objects for which the specified measurement has a value above the threshold.- Parameters:
- pathClass-
- Returns:
- this builder
- See Also:
 
- 
aboveEqualsSet 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:
 
- 
belowEqualsSet 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:
 
- 
belowSet the classification for objects for which the specified measurement has a value below the threshold.- Parameters:
- pathClass-
- Returns:
- this builder
- See Also:
 
- 
equalToSet the classification for objects for which the specified measurement has a value exactly equal to the threshold.- Parameters:
- pathClass-
- Returns:
- this builder
- See Also:
 
- 
buildBuild the classifier defined by the parameters of this builder.- Returns:
- the object classifier
 
 
-