Constant

Presets an image with a constant color.

Inputs

Type (Type: String)

The image type. The following types can be chosen: ImageByte, ImageUInt16, ImageUInt32, ImageDouble, ImageRgbByte, ImageRgbUInt16, ImageRgbUInt32, ImageRgbDouble

Constant (Type: String)

The constant value. This value is converted into the appropriate pixel type, depending on the Type parameter. For monochrome images you should enter one number, for rgb color images you should enter three numbers separated by a space.

Size (Type: Extent3d)

The size of the image that is created. The default value is 1024 x 1024 x 1 pixels.

Region (Type: Region)

An optional region that constrains the preset operation to inside the region only. Pixels outside the region are colored with the Background color.

Background (Type: String)

The preset value outside of the region. This value is converted into the appropriate pixel type, depending on the Type parameter. For monochrome images you should enter one number, for rgb color images you should enter three numbers separated by a space.

Outputs

Image (Type: Image)

The image preset with a constant pattern.

Comments

The Constant node presets an image with a constant color. The size of the created image, the constant color, the region of interest and the background color can all be specified.

Sample

Here is an example that shows how to used the Constant node.

Here is the image created with the sample: