public abstract class EvaluationMeasure extends MTBOperator
Modifier and Type | Field and Description |
---|---|
protected MTBGroundtruthEvaluationData |
evalData
Result data.
|
protected int[] |
gtIDs
Match list of set entries to original groundtruth labels.
|
protected MTBImageShort |
gtLabelImage
Groundtruth labeling.
|
protected int |
height
Height of label images.
|
protected TreeSet<Integer> |
labelsetGT
Set of available groundtruth labels.
|
protected TreeSet<Integer> |
labelsetSG
Set of available segmentation labels.
|
protected byte[][] |
matchingMatrix
Matching matrix.
|
protected int |
maxRegionCount
Maximum number of regions in groundtruth or segmented region set.
|
protected int |
minRegionCount
Minimum number of regions in groundtruth or segmented region set.
|
protected double[][] |
scoreMatrix
Score matrix with pairwise overlaps.
|
protected MTBImageShort |
segLabelImage
Label image of segmentation result.
|
protected int[] |
sgIDs
Match list of set entries to original segmentation labels.
|
protected HashMap<Integer,Integer> |
sizesGT
Array of sizes of groundtruth regions.
|
protected HashMap<Integer,Integer> |
sizesSG
Array of sizes of segmented regions.
|
protected int |
width
Width of label images.
|
Constructor and Description |
---|
EvaluationMeasure()
Default constructor.
|
EvaluationMeasure(MTBImageShort sLabels,
MTBImageShort gLabels)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doEvaluation()
Method to overwrite that does actual calculations.
|
MTBGroundtruthEvaluationData |
getResult()
Returns evaluation result data.
|
protected void |
operate() |
readResolve
addOperatorExecutionProgressEventListener, 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, 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="Segmentation label image", required=true, direction=IN, dataIOOrder=1, description="Segmentation result label image.") protected transient MTBImageShort segLabelImage
@Parameter(label="Groundtruth label image", required=true, direction=IN, dataIOOrder=2, description="Groundtruth label image.") protected transient MTBImageShort gtLabelImage
protected int[] gtIDs
protected int[] sgIDs
protected int minRegionCount
protected int maxRegionCount
protected double[][] scoreMatrix
protected byte[][] matchingMatrix
protected int width
protected int height
@Parameter(label="Evaluation data", required=true, direction=OUT, description="Evaluation data.") protected MTBGroundtruthEvaluationData evalData
public EvaluationMeasure(MTBImageShort sLabels, MTBImageShort gLabels) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
sLabels
- Image with segmentation labels.gLabels
- Image with groundtruth labels.de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of failure.public EvaluationMeasure() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of failure.protected void operate() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
protected abstract void doEvaluation() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of failure.de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
- Thrown in case of failure.public MTBGroundtruthEvaluationData getResult()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.