@ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) public class DrawMask2D extends MTBOperator
Modifier and Type | Field and Description |
---|---|
private int |
color
Color for mask, default is white.
|
private boolean |
getRGBImage
Flag to request a RGB image in any case.
|
private MTBImage |
inImg
Input image.
|
private MTBImageByte |
mask
Mask.
|
private MTBImage |
resultImg
Result image.
|
Constructor and Description |
---|
DrawMask2D()
Default constructor.
|
DrawMask2D(MTBImage img,
MTBImageByte msk)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MTBImage |
getResultImage()
Returns the result image.
|
protected void |
operate() |
void |
setColor(int c)
Specify color as integer value, right 24 bits are interpreted as R,G,B.
|
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, dataIOOrder=0, direction=IN, description="Input image.") private transient MTBImage inImg
@Parameter(label="Mask", required=true, dataIOOrder=1, direction=IN, description="Mask.") private transient MTBImageByte mask
@Parameter(label="Color", required=false, dataIOOrder=2, direction=IN, description="Color to be used.") private int color
To specify the color you have to provide an integer value where the R value is encoded in the first 8 bits, the G value in the second 8 bits and the B value in the last 8 bits.
@Parameter(label="Request RGB image", required=false, dataIOOrder=3, direction=IN, description="Flag to request RGB image.") private boolean getRGBImage
@Parameter(label="Result Image", direction=OUT, description="Resulting (color) image.") private transient MTBImage resultImg
public DrawMask2D() throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public DrawMask2D(MTBImage img, MTBImageByte msk) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
img
- Input image.msk
- Structure mask.de.unihalle.informatik.Alida.exceptions.ALDOperatorException
public void setColor(int c)
public MTBImage getResultImage()
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.