Class DecodeInstanceSegmentation<T>
- Type Parameters:
T
- tensor-type, depending on which framework is used.
- Direct Known Subclasses:
DecodeEAST
,DecodeMaskRCNN
public abstract class DecodeInstanceSegmentation<T>
extends AnchorBean<DecodeInstanceSegmentation<T>>
Decodes inference output into segmented-objects.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract List
<LabelledWithConfidence<MultiScaleObject>> decode
(List<T> inferenceOutput, ImageInferenceContext context) Decodes the output tensors from inference intoObjectMask
s with confidence and labels.Ordered names of the tensors we are interested in processing, as outputted from inference.Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
DecodeInstanceSegmentation
public DecodeInstanceSegmentation()
-
-
Method Details
-
decode
public abstract List<LabelledWithConfidence<MultiScaleObject>> decode(List<T> inferenceOutput, ImageInferenceContext context) throws OperationFailedException Decodes the output tensors from inference intoObjectMask
s with confidence and labels.The created
ObjectMask
s should matchunscaledDimensions
in size.- Parameters:
inferenceOutput
- the tensors that are the result of the inference.context
- the context in which the inference is occurring.- Returns:
- a newly created list of objects, with associated confidence, and labels, that matches
unscaledDimensions
in size. - Throws:
OperationFailedException
- if it cannot be decoded successfully.
-
expectedOutputs
Ordered names of the tensors we are interested in processing, as outputted from inference.- Returns:
- the list of names, as above.
-