Multiply Images

This function block allows users to perform pixel-wise multiplication of two images. This operation is particularly useful in image processing tasks where you want to apply a scaling effect based on the second input image.

📥 Inputs

Image Any First image to be multiplied.

Image Any Second image to be multiplied against the first image.

📤 Outputs

Image Any The result of the pixel-wise multiplication of the two input images.

🎨 Features

Pixel-wise Operation This block performs multiplication on a pixel level, allowing for powerful image manipulation capabilities.

Shape Validation It ensures both input images are of the same dimensions before performing multiplication, providing an error message if they are not.

📝 Usage Instructions

  1. Input Images: Connect two images to the input sockets. Both images must be of the same size.

  2. Evaluate: Run the block to perform the multiplication. The output will be the resulting image obtained through pixel-wise multiplication.

📊 Evaluation

Upon execution, this function block outputs an image that represents the product of pixel values from the two input images.

💡 Tips and Tricks

Scaling Brightness

To adjust the brightness of an image, you can multiply it by a white image (for example, an image of all pixel values being 1). This helps in scaling up or down the brightness.

Enhancing Image Features

Using masks or other images with high contrast can highlight certain features of the first image while diminishing others during multiplication.

Image Resolution

If your images differ in size, use the Image Resize function block to scale one of the images to match the other before applying this function block.

🛠️ Troubleshooting

Dimension Mismatch Error

If you encounter an error about image dimensions not matching, verify that both input images are of the same size. Adjust sizes using the Image Resize function block.

Last updated