@ALDAOperator(genericExecutionMode=ALL, level=STANDARD) public class LabelImageConverter extends MTBOperator
Modifier and Type | Field and Description |
---|---|
private int |
height
Input image height.
|
private MTBImageRGB |
labelImageColor
Colored label image.
|
private MTBImageShort |
labelImageGray
Output gray-scale image.
|
private int |
width
Input image width.
|
Constructor and Description |
---|
LabelImageConverter()
Default constructor.
|
LabelImageConverter(MTBImageRGB colorMask)
Default constructor with parameters.
|
Modifier and Type | Method and Description |
---|---|
MTBImageShort |
getResultLabelImage()
Returns result label image.
|
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="Input Color Label Image", required=true, direction=IN, description="Colored label image.") private MTBImageRGB labelImageColor
@Parameter(label="Output gray-scale image", direction=OUT, description="Gray-scale label image.") private MTBImageShort labelImageGray
private int width
private int height
public LabelImageConverter() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public LabelImageConverter(MTBImageRGB colorMask) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
colorMask
- Colored input label image.de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public MTBImageShort getResultLabelImage()
protected void operate()
operate
in class de.unihalle.informatik.Alida.operator.ALDOperator
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.