Add Images Weighted

This function block allows users to blend two images together by assigning different weights to each image. It produces a resulting image that is a weighted combination of the input images.

📥 Inputs

Image Any The first image that will be blended.

Image Any The second image that will be blended.

📤 Outputs

Image Any The output image created by combining the two input images using specified weights.

🕹️ Controls

Weight % A slider allowing you to set the weight percentage for the first image. The weight for the second image is automatically determined based on this value.

🎨 Features

Dynamic Weight Adjustment Users can easily modify the blending of images in real time by adjusting the weight percentage.

Clipping to Valid Range The output image is clipped to ensure all pixel values remain within valid ranges, preventing overflow or underflow issues.

📝 Usage Instructions

  1. Input Images: Connect two images to the respective inputs of this block.

  2. Set Weight: Use the Weight % slider to define how much of the first image you want to blend into the final output.

  3. Evaluate: Run the block to produce the combined image based on the specified weights.

📊 Evaluation

When executed, this function block outputs an image that visually represents a combination of the two input images according to the weights set.

💡 Tips and Tricks

Maximizing Image Details

Adjust the weight carefully to keep important details of both images. A balanced percentage (like 50%) can often yield good results.

Using with Other Image Processing Functions

For enhanced effects, you can combine this block with filters such as Blur or Histogram On Line to refine the input images before blending.

Adjusting Colors

Consider color adjustments for both images using Contrast-Brightness-Gamma or Auto Contrast blocks to harmonize colors before adding them together.

🛠️ Troubleshooting

Images Not Aligned

Ensure both input images are of the same dimensions. If they are not, you may need to use the Image Resize block to match their sizes.

Unexpected Image Results

If the output appears distorted or unexpected, double-check the input images and amounts set by the weight slider. Values should be within 0-100%.

Last updated