@ALDAOperator(genericExecutionMode=ALL) public class DrawPolygon2DSet extends MTBOperator
If no input image is provided, a new image is generated with the background set to zero (black). The default drawing color is red.
| Modifier and Type | Field and Description |
|---|---|
private String |
color
Color to be used, known colors are: red, green, blue, yellow, white
|
private MTBImageRGB |
inputImage
Input image into which the polygons are to be drawn.
|
private MTBPolygon2DSet |
inputPolys
Set of polygons of type
MTBPolygon2D to draw. |
private MTBImage |
resultImage
Result image.
|
| Constructor and Description |
|---|
DrawPolygon2DSet()
Default constructor.
|
DrawPolygon2DSet(MTBPolygon2DSet ps)
Simple constructor with polygon set.
|
DrawPolygon2DSet(MTBPolygon2DSet ps,
MTBImageRGB img)
Constructor with polygon set and image.
|
| Modifier and Type | Method and Description |
|---|---|
MTBImage |
getResultImage()
Get the resulting region image.
|
protected void |
operate() |
void |
setColor(String c)
Specify color in which to draw the snakes.
|
void |
setInputImage(MTBImageRGB img)
Set input image into which to draw the polygons.
|
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="inputPolygons",
required=true,
direction=IN,
dataIOOrder=1,
mode=STANDARD,
description="Input polygons.")
private MTBPolygon2DSet inputPolys
MTBPolygon2D to draw.@Parameter(label="inputImage",
required=false,
direction=IN,
dataIOOrder=2,
mode=STANDARD,
description="Optional input image.")
private MTBImageRGB inputImage
@Parameter(label="color",
required=false,
direction=IN,
dataIOOrder=3,
mode=STANDARD,
description="Optional color.")
private String color
@Parameter(label="resultImage",
required=true,
direction=OUT,
dataIOOrder=1,
mode=STANDARD,
description="Result image")
private MTBImage resultImage
public DrawPolygon2DSet()
throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDOperatorException - Thrown in case of failure.public DrawPolygon2DSet(MTBPolygon2DSet ps) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
ps - Set of polygons to draw.de.unihalle.informatik.Alida.exceptions.ALDOperatorException - Thrown in case of failure.public DrawPolygon2DSet(MTBPolygon2DSet ps, MTBImageRGB img) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException
ps - Set of polygons to draw.img - Target image to which the polygons are to be drawn.de.unihalle.informatik.Alida.exceptions.ALDOperatorException - Thrown in case of failure.public void setInputImage(MTBImageRGB img)
img - Input image.public void setColor(String c)
Known colors are: red, green, blue, yellow, white
c - Color to use.public MTBImage getResultImage()
protected void operate()
operate in class de.unihalle.informatik.Alida.operator.ALDOperatorCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.