Skip to main content

Greyscale Image

Controlled node

Overview​

The Greyscale Image node converts a color image to greyscale (monochrome). This is useful for image preprocessing, reducing file size, or preparing images for specific types of analysis where color information is not required.

Inputs​

InputTypeDescriptionDefault
RunEventTriggers the image processing operation.-
ImageDataThe input image to be converted to greyscale. Accepts standard image formats (JPEG, PNG, etc.).-

Outputs​

OutputTypeDescription
DoneEventFires when the greyscale conversion is complete.
OutputDataThe resulting greyscale image.

Runtime Behavior​

When the Run event is triggered, the node processes the input image and converts it to greyscale using standard luminance-based conversion. The operation preserves the original image dimensions and format but removes all color channel information, resulting in a single-channel luminance image.

The node extends the base image processing functionality, ensuring that the original image buffer is cloned before processing to prevent mutation of the input data.

Example​

Basic Image Conversion Connect a Read Image node (or any node that outputs image data) to the Image input of the Greyscale Image node. Trigger the Run event to convert the image:

[Read Image] --(image)--> [Greyscale Image] --(output)--> [Show]
| |
v v
(run) (done)

This workflow reads an image from the library, converts it to greyscale, and displays the result in the editor.