public abstract class ReduceElementsGreedy extends ReduceElements<ObjectMask>
Elements can be removed entirely, or can have other operations executed (e.g. removing overlapping voxels).
Constructor and Description |
---|
ReduceElementsGreedy() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
processObjects(ObjectForReduction source,
ObjectForReduction overlapping,
ReduceObjectsGraph graph)
Processes two objects.
|
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.
|
protected abstract boolean |
shouldObjectsBeProcessed(ObjectMask source,
ObjectMask other)
Whether to include another (possibly-overlapping with
source ) element in processing? |
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ReductionOutcome<LabelledWithConfidence<ObjectMask>> reduce(List<LabelledWithConfidence<ObjectMask>> elements, Extent extent, ExecutionTimeRecorder executionTimeRecorder)
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.protected abstract boolean shouldObjectsBeProcessed(ObjectMask source, ObjectMask other)
source
) element in processing?source
- the element we are currently processing, for which we search for possibly
overlapping elementother
- another object which we are considering to include in processing (in conjunction
with source
).other
should be included in processing.protected abstract boolean processObjects(ObjectForReduction source, ObjectForReduction overlapping, ReduceObjectsGraph graph)
source
- the element that is being processed as the source, the object with
higher confidence.overlapping
- the element that is deemed to overlap with the sourceElement
about
which a decision is to be made.graph
- the graph relating objects to each other, and determining the priority for
reduction.source
object was altered during processing, false if it was not.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.