@ALDAOperator(genericExecutionMode=ALL,
level=APPLICATION)
public class ArealParameterExtractor
extends MTBOperator
| Modifier and Type | Field and Description |
|---|---|
private MTBDoubleData |
arealPorosity |
private MTBDoubleData |
avgDiffusionDist |
private MTBDoubleData |
avgHorizontalRunLength |
private MTBDoubleData |
avgVerticalRunLength |
private boolean |
calcAvgDiffusionDistance |
private boolean |
calcAvgHorizontalRunLength |
private boolean |
calcAvgVerticalRunLength |
private boolean |
calcDilationAreas |
private boolean |
calcMaxDiffusionDistance |
private boolean |
calcPorosity |
private Vector<MTBIntegerData> |
dilationAreas |
private MTBImage |
inImg |
private MTBDoubleData |
maxDiffusionDist |
private int |
maxDilMaskSize |
private int |
minDilMaskSize |
private int |
outDigits |
private MTBTableModel |
resultsTable |
| Constructor and Description |
|---|
ArealParameterExtractor() |
ArealParameterExtractor(MTBImage inImg) |
| Modifier and Type | Method and Description |
|---|---|
private double |
calcArealPorosity(MTBImage img) |
private double |
calcAverageDiffusionDistance(MTBImage distImg) |
private double |
calcAvgHorizontalRunLength(MTBImage img) |
private double |
calcAvgVerticalRunLength(MTBImage img) |
private Vector<MTBIntegerData> |
calcDilationAreas(MTBImage img,
int minSize,
int maxSize) |
private double |
calcMaximumDiffusionDistance(MTBImage distImg) |
private MTBImage |
getDistanceImage(MTBImage img) |
private MTBTableModel |
makeTable() |
protected void |
operate() |
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, 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 (should be 8 bit gray scale)",
dataIOOrder=0)
private transient MTBImage inImg
@Parameter(label="calculate areal porosity",
required=false,
direction=IN,
supplemental=false,
description="should the areal porosity of the image be calculated",
dataIOOrder=1)
private boolean calcPorosity
@Parameter(label="calculate avg. horizontal run lengths",
required=false,
direction=IN,
supplemental=false,
description="should the average length of horizontal runs of the image be calculated",
dataIOOrder=2)
private boolean calcAvgHorizontalRunLength
@Parameter(label="calculate avg. vertical run lengths",
required=false,
direction=IN,
supplemental=false,
description="should the average length of vertical runs of the image be calculated",
dataIOOrder=3)
private boolean calcAvgVerticalRunLength
@Parameter(label="calculate avg. diffusion distance",
required=false,
direction=IN,
supplemental=false,
description="should the average diffusion of the image be calculated",
dataIOOrder=4)
private boolean calcAvgDiffusionDistance
@Parameter(label="calculate max. diffusion distance",
required=false,
direction=IN,
supplemental=false,
description="should the maximum diffusion of the image be calculated",
dataIOOrder=5)
private boolean calcMaxDiffusionDistance
@Parameter(label="calculate dilation areas",
required=false,
direction=IN,
supplemental=false,
description="should the maximum diffusion of the image be calculated",
dataIOOrder=6)
private boolean calcDilationAreas
@Parameter(label="minimum dilation mask diameter",
required=false,
direction=IN,
supplemental=false,
description="the minimum diameter of dilation mask used for calculating dilation areas",
dataIOOrder=7)
private int minDilMaskSize
@Parameter(label="maximum dilation mask diameter",
required=false,
direction=IN,
supplemental=false,
description="the maximum diameter of dilation mask used for calculating dilation areas",
dataIOOrder=8)
private int maxDilMaskSize
@Parameter(label="result value digits",
required=false,
direction=IN,
supplemental=false,
description="number of digits for output values",
mode=ADVANCED,
dataIOOrder=9)
private int outDigits
private MTBDoubleData arealPorosity
private MTBDoubleData avgHorizontalRunLength
private MTBDoubleData avgVerticalRunLength
private MTBDoubleData avgDiffusionDist
private MTBDoubleData maxDiffusionDist
private Vector<MTBIntegerData> dilationAreas
@Parameter(label="results table",
required=true,
direction=OUT,
supplemental=false,
description="table containing the resulting values")
private MTBTableModel resultsTable
public ArealParameterExtractor()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionpublic ArealParameterExtractor(MTBImage inImg) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionprotected void operate()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException,
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
operate in class de.unihalle.informatik.Alida.operator.ALDOperatorde.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionde.unihalle.informatik.Alida.exceptions.ALDProcessingDAGExceptionprivate double calcArealPorosity(MTBImage img)
img - binary input imageprivate double calcAvgHorizontalRunLength(MTBImage img)
img - binary input imageprivate double calcAvgVerticalRunLength(MTBImage img)
img - binary input imageprivate MTBImage getDistanceImage(MTBImage img) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
img - binary input imagede.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionde.unihalle.informatik.Alida.exceptions.ALDProcessingDAGExceptionprivate double calcAverageDiffusionDistance(MTBImage distImg)
distImg - distance transform imageprivate double calcMaximumDiffusionDistance(MTBImage distImg)
distImg - distance transform imageprivate Vector<MTBIntegerData> calcDilationAreas(MTBImage img, int minSize, int maxSize) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
img - binary input imageminSize - minimum diameter of the circular dilation maskmaxSize - maximum diameter of the circular dilation maskde.unihalle.informatik.Alida.exceptions.ALDOperatorExceptionde.unihalle.informatik.Alida.exceptions.ALDProcessingDAGExceptionprivate MTBTableModel makeTable()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.