@ALDAOperator(genericExecutionMode=ALL, level=STANDARD, allowBatchMode=true) public class MorphologyAnalyzer3D extends MTBOperator
Modifier and Type | Field and Description |
---|---|
private int |
bgLabel |
private boolean |
calcCompactness |
private boolean |
calcSurfArea |
private boolean |
calcVolume |
(package private) Vector<Double> |
compactnesses |
private Double |
deltaX |
private Double |
deltaY |
private Double |
deltaZ |
private Integer |
fracDigits |
private MTBImage |
labelImg |
(package private) Vector<Integer> |
labels |
private NumberFormat |
nf |
private MTBRegion3DSet |
regions |
(package private) Vector<Double> |
surfaceAreas |
private MTBSurface3DSet |
surfaces |
private MTBTableModel |
table |
private String |
unitXYZ |
(package private) Vector<Double> |
volumes |
Constructor and Description |
---|
MorphologyAnalyzer3D() |
MorphologyAnalyzer3D(MTBImage labelImg) |
MorphologyAnalyzer3D(MTBRegion3DSet regions,
MTBSurface3DSet surfaces) |
Modifier and Type | Method and Description |
---|---|
boolean |
calcCompactness() |
boolean |
calcSurfArea() |
boolean |
calcVolume() |
private void |
getCalibration() |
Double |
getDeltaX() |
Double |
getDeltaY() |
Double |
getDeltaZ() |
MTBImage |
getLabelImg() |
private void |
getShapeFeatures() |
MTBTableModel |
getTable() |
String |
getUnitXYZ() |
private void |
makeTable()
create result table
|
protected void |
operate() |
void |
setCalcCompactness(boolean calcCompactness) |
void |
setCalcSurfArea(boolean calcSurfArea) |
void |
setCalcVolume(boolean calcVolume) |
void |
setDeltaX(Double deltaX) |
void |
setDeltaY(Double deltaY) |
void |
setDeltaZ(Double deltaZ) |
void |
setFractionalDigits(int digits)
specify the number of fractional digits for the results table
|
void |
setLabelImg(MTBImage labelImg) |
void |
setUnitXYZ(String unitXYZ) |
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="3D-label image", required=false, direction=IN, supplemental=false, description="3D-label image", dataIOOrder=0, callback="getCalibration", paramModificationMode=MODIFIES_INTERFACE) private transient MTBImage labelImg
private MTBRegion3DSet regions
private MTBSurface3DSet surfaces
@Parameter(label="pixel length, x-direction", required=false, direction=IN, supplemental=false, description="pixel length in x-direction", dataIOOrder=3) private Double deltaX
@Parameter(label="pixel length, y-direction", required=false, direction=IN, supplemental=false, description="pixel length in y-direction", dataIOOrder=4) private Double deltaY
@Parameter(label="pixel length, z-direction", required=false, direction=IN, supplemental=false, description="pixel length in z-direction", dataIOOrder=5) private Double deltaZ
@Parameter(label="unit x/y/z", required=false, direction=IN, supplemental=false, description="unit of spatial dimensions", dataIOOrder=6) private String unitXYZ
@Parameter(label="calculate volume", required=false, direction=IN, supplemental=false, description="should object\'s areas be calculated", dataIOOrder=7) private boolean calcVolume
@Parameter(label="calculate compactness", required=false, direction=IN, supplemental=false, description="should object\'s areas be calculated", dataIOOrder=8) private boolean calcCompactness
@Parameter(label="calculate surface area", required=false, direction=IN, supplemental=false, description="should object\'s areas be calculated", dataIOOrder=9) private boolean calcSurfArea
@Parameter(label="fractional digits", required=false, direction=IN, supplemental=false, description="fractional digits", dataIOOrder=10, mode=ADVANCED) private Integer fracDigits
@Parameter(label="results table", required=true, direction=OUT, supplemental=false, description="results table", dataIOOrder=0) private MTBTableModel table
private NumberFormat nf
private int bgLabel
public MorphologyAnalyzer3D() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MorphologyAnalyzer3D(MTBImage labelImg) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MorphologyAnalyzer3D(MTBRegion3DSet regions, MTBSurface3DSet surfaces) 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 void getShapeFeatures()
private void makeTable()
public MTBImage getLabelImg()
public void setLabelImg(MTBImage labelImg)
labelImg
- the labelImg to setpublic Double getDeltaX()
public void setDeltaX(Double deltaX)
deltaX
- the deltaX to setpublic Double getDeltaY()
public void setDeltaY(Double deltaY)
deltaY
- the deltaY to setpublic Double getDeltaZ()
public void setDeltaZ(Double deltaZ)
deltaZ
- the deltaZ to setpublic String getUnitXYZ()
public void setUnitXYZ(String unitXYZ)
unitXYZ
- the unitXYZ to setpublic boolean calcVolume()
public void setCalcVolume(boolean calcVolume)
calcVolume
- should volumes be calculatedpublic boolean calcCompactness()
public void setCalcCompactness(boolean calcCompactness)
calcCompactness
- should compactnesses be calculatedpublic boolean calcSurfArea()
public void setCalcSurfArea(boolean calcSurfArea)
calcSurfArea
- should surface areas be calculatedpublic void setFractionalDigits(int digits)
digits
- public MTBTableModel getTable()
private void getCalibration()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.