@ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) public class TexturalParameterExtractor extends MTBOperator
Modifier and Type | Field and Description |
---|---|
private MTBDoubleData |
angularSecondMoment |
private boolean |
calcASM |
private boolean |
calcEntropy |
private boolean |
calcIDM |
private MTBImage |
inImg |
private MTBDoubleData |
inverseDifferenceMoment |
private int |
outDigits |
private MTBTableModel |
resultsTable |
private MTBDoubleData |
texturalEntropy |
Constructor and Description |
---|
TexturalParameterExtractor() |
TexturalParameterExtractor(MTBImage inImg) |
Modifier and Type | Method and Description |
---|---|
private double |
calcAngularSecondMoment(Double[][] P) |
private double |
calcInverseDifferenceMoment(Double[][] P) |
private Double[][] |
calcNormSpatialDependenceMatrix(MTBImage image) |
private double |
calcTexturalEntropy(Double[][] P) |
private MTBTableModel |
makeTable() |
protected void |
operate() |
private void |
printMatrix(Double[][] matrix) |
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="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 textural entropy", required=false, direction=IN, supplemental=false, description="should the textural entropy of the image be calculated", dataIOOrder=3) private boolean calcEntropy
@Parameter(label="calculate angular second moment", required=false, direction=IN, supplemental=false, description="should the angular second moment of the image be calculated", dataIOOrder=4) private boolean calcASM
@Parameter(label="calculate inverse difference moment", required=false, direction=IN, supplemental=false, description="should the inverse difference moment of the image be calculated", dataIOOrder=4) private boolean calcIDM
@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 texturalEntropy
private MTBDoubleData angularSecondMoment
private MTBDoubleData inverseDifferenceMoment
@Parameter(label="results table", required=true, direction=OUT, supplemental=false, description="table containing the resulting values") private MTBTableModel resultsTable
public TexturalParameterExtractor() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public TexturalParameterExtractor(MTBImage inImg) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
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
private Double[][] calcNormSpatialDependenceMatrix(MTBImage image)
image
- 8 bit grayscale imageprivate double calcTexturalEntropy(Double[][] P)
P
- normalized spatial dependence matrixprivate double calcAngularSecondMoment(Double[][] P)
P
- normalized spatial dependence matrixprivate double calcInverseDifferenceMoment(Double[][] P)
P
- normalized spatial dependence matrixprivate MTBTableModel makeTable()
private void printMatrix(Double[][] matrix)
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.