Contrast-Brightness-Gamma
This function block lets you adjust the overall contrast, brightness, and gamma of an image using three simple sliders. It's ideal for quick visual tuning or as a preprocessing step before further analysis.
π₯ Inputs (sockets)
Image AnyInput image to be adjusted.
π€ Outputs (sockets)
Image AnyAdjusted image after contrast, brightness, and gamma are applied.
πΉοΈ Controls
Contrast ValueSlider to increase or decrease image contrast.Brightness ValueSlider to shift image brightness up or down.Gamma ValueSlider to apply gamma correction for midtone adjustments.
π¨ Features
Real-time visual tuning via sliders for fast experimentation.
Combined operations: contrast and brightness are applied first, followed by gamma correction for smooth tonal control.
Works with any image format supported by the system (color or grayscale).
π Usage Instructions
Provide an image to the
Image Anyinput socket.Move the
Contrast Valueslider to adjust contrast. Values toward the positive side increase contrast; negative values soften it.Move the
Brightness Valueslider to brighten or darken the image.Tweak the
Gamma Valueslider to correct midtones without changing extremes too much.The processed image is available from the
Image Anyoutput socket for preview or further blocks.
π Evaluation
When the block runs, it produces a single adjusted image reflecting current slider positions. Use this output to feed downstream analysis, visualization, or storage blocks.
π‘ Tips and Tricks
For noisy images, use the
Denoisingblock before this block to avoid amplifying noise when increasing contrast.If you want automatic improvements, try combining this block with
Auto Contrastto get a quick baseline before manual fineβtuning.To speed up processing on very large images, put
Image Resizerupstream to reduce image size before adjustment.Use
Show Imageafter this block to inspect results in a larger viewer window.When producing outputs for logging or records, connect the result to
Image LoggerorImage Writeto save adjusted frames.Use
Load Image,Camera USB, orCamera IP (ONVIF)as typical upstream image sources depending on your workflow.
π οΈ Troubleshooting
If the image looks overly contrasty or clipped, reduce
Contrast Valueor lowerBrightness Valueand reapply moderateGamma Valueadjustments.If colors look strange after heavy adjustments, try applying
Auto ContrastorNormalize Imageto re-balance pixel ranges.If real-time responsiveness is slow, reduce the input image resolution with
Image Resizerbefore adjusting.
Last updated
Was this helpful?