public final class ObjectForReduction extends Object implements Comparable<ObjectForReduction>
Modifier and Type | Field and Description |
---|---|
static int |
NEWLY_ADDED
A special index value to indicate that an object has been newly-added.
|
Constructor and Description |
---|
ObjectForReduction(LabelledWithConfidence<ObjectMask> labelled)
Creates with a
ObjectMask that is considered newly-added. |
ObjectForReduction(LabelledWithConfidence<ObjectMask> labelled,
int index) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ObjectForReduction other) |
boolean |
equals(Object o) |
double |
getConfidence()
The associated confidence.
|
ObjectMask |
getElement()
The underlying
ObjectMask with whom a confidence and label is associated. |
int |
getIndex()
The index of the element in the original list for reduction, or
NEWLY_ADDED if newly
added. |
String |
getLabel()
The label associated with the element.
|
LabelledWithConfidence<ObjectMask> |
getLabelled()
The underlying labelled
ObjectMask for input to a reduction algorithm. |
int |
hashCode() |
String |
toString() |
public static final int NEWLY_ADDED
Typically indices are non-negative, reflecting the position their position in the input list (as passed for reduction).
public ObjectForReduction(LabelledWithConfidence<ObjectMask> labelled)
ObjectMask
that is considered newly-added.labelled
- a labelled newly-added object.public ObjectForReduction(LabelledWithConfidence<ObjectMask> labelled, int index)
public ObjectMask getElement()
ObjectMask
with whom a confidence and label is associated.public String getLabel()
public double getConfidence()
public int compareTo(ObjectForReduction other)
compareTo
in interface Comparable<ObjectForReduction>
public LabelledWithConfidence<ObjectMask> getLabelled()
ObjectMask
for input to a reduction algorithm.public int getIndex()
NEWLY_ADDED
if newly
added.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.