RGB Mask
This function block allows for the application of RGB masking on an input image using adjustable sliders. Users can define a specific range for red, green, and blue channels to isolate certain colors within the image.
📥 Inputs
Image Any
The input image that needs to be processed with RGB masking.
Mask Color
An optional pixel value that will be used to replace areas where the mask condition is not satisfied.
📤 Outputs
Image Any
The output image that shows the result of the RGB masking applied to the input image.
🕹️ Controls
Red Value (Min-Max)
A slider that allows you to set the minimum and maximum values for the red channel.
Green Value (Min-Max)
A slider that allows you to set the minimum and maximum values for the green channel.
Blue Value (Min-Max)
A slider that allows you to set the minimum and maximum values for the blue channel.
🎨 Features
Flexible Color Range Adjustment
Users can fine-tune the specific RGB ranges using range sliders for precise color segmentation.
Mask Replacement Option
If a mask does not satisfy the conditions, the specified pixel color can replace those areas for better visualization.
📝 Usage Instructions
Input Image: Connect the image you wish to process to the
Image Any
input.Set RGB Ranges: Use the sliders to adjust the
Red```,
Green```, andBlue
ranges based on the color you want to isolate.(Optional) Mask Color: Optionally connect a pixel value to the
Mask Color
input, which will be used to fill in areas that do not meet the masking criteria.Run Evaluation: Execute the block to apply the RGB mask and obtain the output image with the specified color filtered.
📊 Evaluation
Upon execution, this function block analyzes the input image and generates the output displaying the results of the RGB masking process based on the specified color ranges.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated