Adjust Colors
This function block lets you fine-tune color balance by adding or subtracting bias to each RGB channel. Use it to correct white balance, emphasize a color tint, or tweak the overall color cast of an image in an intuitive way.
π₯ Inputs (sockets)
Image Input socket
Accepts any image (grayscale or color). Grayscale inputs are converted to color for per-channel adjustments.
π€ Outputs (sockets)
Image Any Output socket
Returns the color-adjusted image with the modified RGB channels.
πΉοΈ Controls (widgets)
Red Bias Slider
Adjusts the red channel bias. Move right to increase red, left to decrease red.
Green Bias Slider
Adjusts the green channel bias. Move right to increase green, left to decrease green.
Blue Bias Slider
Adjusts the blue channel bias. Move right to increase blue, left to decrease blue.
π¨ Features
Per-channel bias sliders for quick and visible color correction.
Accepts grayscale images and converts them to color so you can apply channel-wise adjustments.
Works live with incoming images for immediate visual feedback.
βοΈ How it works (running mechanism)
When the block runs, it ensures the input is in color format, then adjusts each color channel independently according to the slider values. The resulting image is produced through a per-channel modification and emitted via the output socket so downstream blocks can use the adjusted image.
π Usage instructions
Connect an image-producing block to the
Imageinput socket.Move the
Red Bias,Green Bias, andBlue Biassliders until the image looks correct.Use the output from this block as the input for visualization, saving, or further processing.
π‘ Tips and Tricks
Preview changes live by connecting the output to
Show Image.For global contrast improvements before color tweaking, try
Auto Contrastthen feed its output into this block.If the image is very large, use
Image Resizerfirst to speed up interactive adjustments.To inspect individual channels before/after adjustment, use
Split Imageand view channels separately; thenMerge Channelsif you need to reconstruct.Use
Image ROI Selectto crop a representative area (for example a gray card) and tune biases based on that region.Combine with
Color Density Percentageto measure channel distributions and guide bias values quantitatively.To save results for documentation or dataset creation, follow this block with
Image LoggerorImage Write.If your scene has noise that affects color perception, add a
BlurorDenoisingblock before adjusting colors.
π οΈ Troubleshooting
If adjustments look too strong, reduce slider magnitudes or apply smaller tweaks and preview with
Show Image.If input appears grayscale after adjusting, ensure the source is color or let the block convert grayscale to color (it will do this automatically).
If results vary across the image, try adjusting on a cropped area using
Image ROI Selectand then apply the same settings globally.
Last updated