Comment on page

Merge Channels

Merge Channels Node Documentation

The Merge Channels node in AugeLab Studio is used to merge three grayscale images representing the red, green, and blue channels into a single RGB image.

Node Overview

The Merge Channels node takes three grayscale input images representing the red, green, and blue channels, respectively. It combines these three channels to create a single RGB image. The node is useful for merging separate grayscale channels into a color image.

Node Properties

  • Node Title: Merge Channels
  • Node ID: OP_NODE_MERGE_CHANNELS

Inputs

The Merge Channels node has the following input sockets:
  1. 1.
    Red Channel: The grayscale image representing the red channel.
  2. 2.
    Blue Channel: The grayscale image representing the blue channel.
  3. 3.
    Green Channel: The grayscale image representing the green channel.
All input images should have the same dimensions.

Outputs

The Merge Channels node has the following output socket:
  1. 1.
    Output Image: The resulting RGB image obtained by merging the three input channels.
The output image will have the same dimensions as the input channels.

Usage

  1. 1.
    Drag and drop the Merge Channels node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Connect the grayscale image representing the red channel to the Red Channel input socket of the Merge Channels node.
  3. 3.
    Connect the grayscale image representing the blue channel to the Blue Channel input socket of the Merge Channels node.
  4. 4.
    Connect the grayscale image representing the green channel to the Green Channel input socket of the Merge Channels node.
  5. 5.
    Run the pipeline.
  6. 6.
    The Merge Channels node will combine the three input channels to create an RGB image.
  7. 7.
    The resulting RGB image will be output through the Output Image output socket.
  8. 8.
    Use the output image for further analysis or display it in the console.

Notes

  • The Merge Channels node requires three grayscale input images representing the red, green, and blue channels.
  • The node combines the three channels to create an RGB image.
  • The node supports grayscale images of any size and data type.
  • If the input images have different dimensions, an error will be raised. Ensure that the input channels have the same size.
  • The Merge Channels node uses OpenCV's cv2.merge() function to combine the input channels into an RGB image.
  • The resulting RGB image will have the same dimensions as the input channels.
That concludes the documentation for the Merge Channels node in AugeLab Studio. This node allows you to merge three grayscale channels into a single RGB image, enabling you to work with color images in your pipeline.