public abstract class EvaluationMeasureContours extends EvaluationMeasure
These operators need a segmentation image and a ground truth image. They evaluate a contour segmentation in comparison to the ground truth segmentation by an expert. Both images have to be region images and have to have the same size. The class is able to detect all regions (which a later identified by their pixel value) and their contours. In addition the class is able to allocate regions, that we know which region in the segmentation image belongs to which region in the ground truth image. This method just collects regions and region contours. If there are no regions in an image the accordingly lists (gtRegions, segRegions, gtContours, segContours) are not allocated.
Modifier and Type | Field and Description |
---|---|
protected ArrayList<ArrayList<Point>> |
gtContours
List of point-wise groundtruth contours.
|
protected ArrayList<Integer> |
gtRegionLabels
List of labels of groundtruth regions.
|
protected MTBImage |
resultImg
Result image showing the ground truth image and the segmented contours.
|
protected ArrayList<ArrayList<Point>> |
segContours
List of point-wise segmented contours.
|
protected ArrayList<Integer> |
segRegionLabels
List of labels of segmented regions.
|
evalData, gtIDs, gtLabelImage, height, labelsetGT, labelsetSG, matchingMatrix, maxRegionCount, minRegionCount, scoreMatrix, segLabelImage, sgIDs, sizesGT, sizesSG, width
Constructor and Description |
---|
EvaluationMeasureContours()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected MTBImage |
showContours(MTBImage img,
ArrayList<ArrayList<Point>> contours)
This method shows the contour pixel on a given image.
|
doEvaluation, getResult, 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="Segmented Contours", required=true, direction=IN, dataIOOrder=0, description="List of segmented contours (point lists).") protected transient ArrayList<ArrayList<Point>> segContours
@Parameter(label="Groundtruth Contours", required=true, direction=IN, dataIOOrder=1, description="List of groundtruth contours (point lists).") protected transient ArrayList<ArrayList<Point>> gtContours
@Parameter(label="Labels of Segmented Regions", required=true, direction=IN, dataIOOrder=2, description="Labels of segmented regions.") protected transient ArrayList<Integer> segRegionLabels
@Parameter(label="Labels of Groundtruth Regions", required=true, direction=IN, dataIOOrder=3, description="Labels of groundtruth regions.") protected transient ArrayList<Integer> gtRegionLabels
@Parameter(label="Result Image", dataIOOrder=0, direction=OUT, description="Result image.") protected MTBImage resultImg
public EvaluationMeasureContours() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
- Thrown in case of failure.protected MTBImage showContours(MTBImage img, ArrayList<ArrayList<Point>> contours)
img
- Image in which to plot the contours.contours
- Contours to plot.Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.