Class DrawPointsStep
- java.lang.Object
-
- ai.konduit.serving.data.image.step.point.draw.DrawPointsStep
-
- All Implemented Interfaces:
ai.konduit.serving.pipeline.api.step.PipelineStep,ai.konduit.serving.pipeline.api.TextConfig,java.io.Serializable
public class DrawPointsStep extends java.lang.Object implements ai.konduit.serving.pipeline.api.step.PipelineStepDraw 2D points
Configuration:
- classColors: Optional: A list of colors to use for each class. Must be in one of the following formats: hex/HTML - "#788E87", RGB - "rgb(128,0,255)", or one of 16 HTML color name such as \"green\" (https://en.wikipedia.org/wiki/Web_colors#HTML_color_names). If no colors are specified, or not enough colors are specified, random colors are used instead (note consistent between runs). Colors are mapped to named classes in alphabetical order, i.e. first color to class A, second color to class B, etc...
- points: Names of the points to be drawn. Accepts both single points and lists of points.
- radius: Point radius on drawn image.
- image: Optional. Name of the image to be drawn on
- width: Must be provided when image isn't set. Used to resolve position of points with relative addressing (dimensions between 0 and 1)
- height: Must be provided when image isn't set. Used to resolve position of points with relative addressing (dimensions between 0 and 1)
- outputName: Name of the output image
- Author:
- Paul Dubs
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_NO_POINT_COLORstatic java.lang.StringDEFAULT_OUTPUT_NAME
-
Constructor Summary
Constructors Constructor Description DrawPointsStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DrawPointsSteppoints(java.lang.String... points)
-
-
-
Field Detail
-
DEFAULT_OUTPUT_NAME
public static final java.lang.String DEFAULT_OUTPUT_NAME
- See Also:
- Constant Field Values
-
DEFAULT_NO_POINT_COLOR
public static final java.lang.String DEFAULT_NO_POINT_COLOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
points
public DrawPointsStep points(java.lang.String... points)
-
-