Class DecodeInstanceSegmentation<T>
Object
org.anchoranalysis.bean.AnchorBean<DecodeInstanceSegmentation<T>>
org.anchoranalysis.image.inference.bean.segment.instance.DecodeInstanceSegmentation<T>
- Type Parameters:
T- tensor-type, depending on which framework is used.
public abstract class DecodeInstanceSegmentation<T> extends AnchorBean<DecodeInstanceSegmentation<T>>
Decodes inference output into segmented-objects.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description DecodeInstanceSegmentation() -
Method Summary
Modifier and Type Method Description abstract List<LabelledWithConfidence<MultiScaleObject>>decode(List<T> inferenceOutput, ImageInferenceContext context)Decodes the output tensors from inference intoObjectMasks with confidence and labels.abstract List<String>expectedOutputs()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 OperationFailedExceptionDecodes the output tensors from inference intoObjectMasks with confidence and labels.The created
ObjectMasks should matchunscaledDimensionsin 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
unscaledDimensionsin 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.
-