public abstract class FeatureCalculator extends MTBOperator
Operators extending this class are supposed to extract features from a
given image. As result they should return an object of type
FeatureCalculatorResult.
| Modifier and Type | Field and Description |
|---|---|
protected MTBImage |
inImg
Input image to calculate features for.
|
protected FeatureCalculatorResult |
resultObj
Result data object, e.g., an image, a histogram, a vector, ....
|
| Modifier | Constructor and Description |
|---|---|
protected |
FeatureCalculator()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FeatureCalculatorResult |
getResultData()
Returns result data object.
|
protected abstract FeatureCalculatorResult |
getResultDataObjectInvalid(int d)
Helper method to allow for requesting invalid dummy results.
|
void |
setInputImage(MTBImage input)
Sets the input image to work on.
|
readResolveaddOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, operate, print, print, print, printInterface, printInterface, readHistory, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory@Parameter(label="Input image",
required=true,
direction=IN,
supplemental=false,
description="Input image to analyze.",
dataIOOrder=-10)
protected transient MTBImage inImg
@Parameter(label="Result data",
direction=OUT,
description="Result of feature calculation.")
protected transient FeatureCalculatorResult resultObj
protected FeatureCalculator()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException - Thrown in case of failure.public void setInputImage(MTBImage input)
input - Image to work on.public FeatureCalculatorResult getResultData()
protected abstract FeatureCalculatorResult getResultDataObjectInvalid(int d)
d - Desired dimension of output object.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.