🖥
🖥
🖥
🖥
AugeLab Studio Manual
English
Ask or search…
K
Comment on page

RGB Mask

RGB Mask Node Documentation

The RGB Mask node in AugeLab Studio applies an RGB mask to an input image based on specified color ranges.

Node Overview

The RGB Mask node allows you to mask an input image by specifying color ranges for the red, green, and blue channels. Pixels within the specified ranges are retained, while pixels outside the ranges are set to black. Additionally, you can provide a replacement color to replace the masked pixels with a specific color.

Node Properties

  • Node Title: RGB Mask
  • Node ID: OP_NODE_RGB_MASK

Inputs

The RGB Mask node has the following input sockets:
  • ImageAny: The input image to apply the RGB mask to.
  • Pixel (Mask Color): An optional replacement color for the masked pixels. If connected, the masked pixels will be replaced with the specified color. Leave this socket unconnected to keep the masked pixels as black.

Outputs

The RGB Mask node has the following output socket:
  • ImageAny: The masked image with the pixels outside the specified color ranges set to black. If a replacement color is provided, the masked pixels will be replaced with the specified color.

Node Configuration

The RGB Mask node has the following adjustable parameters:
  • Red Value (Min-Max): Specify the minimum and maximum values for the red channel. Pixels with red values within this range will be retained, while pixels outside the range will be masked.
  • Green Value (Min-Max): Specify the minimum and maximum values for the green channel. Pixels with green values within this range will be retained, while pixels outside the range will be masked.
  • Blue Value (Min-Max): Specify the minimum and maximum values for the blue channel. Pixels with blue values within this range will be retained, while pixels outside the range will be masked.

Usage

  1. 1.
    Drag and drop the RGB Mask node from the node library onto the canvas in AugeLab Studio.
  2. 2.
    Connect the input image to the ImageAny input socket of the RGB Mask node.
  3. 3.
    Optionally, connect a replacement color to the Pixel (Mask Color) input socket to replace the masked pixels with the specified color. Leave this socket unconnected to keep the masked pixels as black.
  4. 4.
    Adjust the parameters Red Value (Min-Max), Green Value (Min-Max), and Blue Value (Min-Max) to define the color ranges for the RGB mask.
  5. 5.
    Run the pipeline.
  6. 6.
    The RGB Mask node will apply the RGB mask to the input image based on the specified color ranges and provide the masked image at the ImageAny output socket. If a replacement color is provided, the masked pixels will be replaced with the specified color.
  7. 7.
    Retrieve the masked image from the output socket for further processing or visualization.

Notes

  • The RGB Mask node allows you to mask an input image based on specified color ranges for the red, green, and blue channels.
  • Pixels within the specified color ranges are retained in the masked image, while pixels outside the ranges are set to black.
  • You can provide a replacement color by connecting an RGB color value to the Pixel (Mask Color) input socket. The masked pixels will be replaced with the specified color.
  • Adjust the Red Value (Min-Max), Green Value (Min-Max), and Blue Value (Min-Max) parameters to define the color ranges for the RGB mask. Pixels with channel values within the specified ranges will be retained, while pixels outside the ranges will be masked.
  • The RGB Mask node works with color images and allows you to selectively retain or mask pixels based on their RGB values.
  • Experiment with different color ranges and replacement colors to achieve the desired masking effect.
That concludes the documentation for the RGB Mask node in AugeLab Studio. This node enables you to apply an RGB mask to an input image based on specified color ranges, allowing you to retain or mask pixels based on their RGB values.