public class ThresholdConfidence extends ReduceElements<ObjectMask>
After thresholding, a connected-components algorithm splits the thresholded-mask into single-objects.
Depending on the number of objects, two types of projection occur:
Constructor and Description |
---|
ThresholdConfidence() |
ThresholdConfidence(double minConfidence)
Creates with a minimum-confidence level.
|
Modifier and Type | Method and Description |
---|---|
double |
getMinConfidence()
The minimum confidence of an element for its object-mask to be initially included for
consideration (before merging).
|
int |
getMinNumberVoxels()
The minimum number of voxels that must exist in a connected-component to be included.
|
int |
getThresholdNumberObjectsGlobal()
When the number of objects is greater or equal than this, they are reduced globally, without
separation.
|
ReductionOutcome<LabelledWithConfidence<ObjectMask>> |
reduce(List<LabelledWithConfidence<ObjectMask>> elements,
Extent extent,
ExecutionTimeRecorder executionTimeRecorder)
Reduce a list of elements (each with a confidence score and a label) to a
smaller-list.
|
void |
setMinConfidence(double minConfidence)
The minimum confidence of an element for its object-mask to be initially included for
consideration (before merging).
|
void |
setMinNumberVoxels(int minNumberVoxels)
The minimum number of voxels that must exist in a connected-component to be included.
|
void |
setThresholdNumberObjectsGlobal(int thresholdNumberObjectsGlobal)
When the number of objects is greater or equal than this, they are reduced globally, without
separation.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ThresholdConfidence(double minConfidence)
minConfidence
- the minimum confidence of an element for its object-mask to be
finally included (after merging).public ThresholdConfidence()
public ReductionOutcome<LabelledWithConfidence<ObjectMask>> reduce(List<LabelledWithConfidence<ObjectMask>> elements, Extent extent, ExecutionTimeRecorder executionTimeRecorder) throws OperationFailedException
ReduceElements
It is not guaranteed that the resulting list will have fewer elements than the input list, but never more.
reduce
in class ReduceElements<ObjectMask>
elements
- proposed bounding-boxes with scores.extent
- an area in which all elements
must exclusively reside.executionTimeRecorder
- records the execution time of particular operations.OperationFailedException
- if anything goes wrong.public double getMinConfidence()
public void setMinConfidence(double minConfidence)
public int getMinNumberVoxels()
public void setMinNumberVoxels(int minNumberVoxels)
public int getThresholdNumberObjectsGlobal()
public void setThresholdNumberObjectsGlobal(int thresholdNumberObjectsGlobal)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.