DrawLines

The DrawLines block draws a line on an image based on two inputs to the block.

    DrawLines

Library

ComputerVision/Images/Draw

Parameters

DrawLines_0

NameLabelDescriptionData TypeValid Values

thickness

Thickness

Specifies line thickness as an integer greater than 0.

Scalar

type

Type

Specifies the algorithm for drawing the line.

Structure

type/fill

Filled

Number

0
1

type/con4

4-connected Bresenham

Number

0
1

type/con8

8-connected Bresenham

Number

0
1

type/antiallias

Antialiased

Number

0
1

externalActivation

External activation

This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF.

Number

0
1

DrawLines_1

NameLabelDescriptionData TypeValid Values

colorR

R

Specifies the line’s color as RGB values.

Scalar

colorG

G

Specifies the line’s color as RGB values.

Scalar

colorB

B

Specifies the line’s color as RGB values.

Scalar

randomColor

Random Colors

When activated, it overrides the color selection and colors the lines in random colors.

Number

0
1

Ports

NameTypeDescriptionIO TypeNumber

lines

explicit

Specifies the line characteristics to be drawn. Input to this port is the Hough Lines block.

input

1

src

explicit

input

2

image

explicit

output

1

Port 4

activation

input

externalActivation