Convert

The Convert block converts the color information of an image from one color space to another.

    Convert

Library

ComputerVision/Images/Operations

Description

Your choices are:

• RGB to Gray Scale

• RGB to HSV (Hue, Saturation, Value)

• RGB to HLS (Hue, Luminosity Saturation)

• Gray scale to RGB

• HSV to RGB

• HLS to RGB

Parameters

Convert_0

NameLabelDescriptionData TypeValid Values

conversionType

Conversion Type

Specifies the color spaces between which you are converting.

String

'RGB
to
Gray'
'Gray
to
RGB'
'RGB
to
HSV'
'HSV
to
RGB'
'RGB
to
HLS'
'HLS
to
RGB'

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

Ports

NameTypeDescriptionIO TypeNumber

src

explicit

input

1

image

explicit

output

1

Port 3

activation

input

externalActivation