Divide Images

This function block is used to perform division between two images of the same dimensions. It generates a resulting image by dividing the pixel values of the first image by the corresponding pixel values of the second image.

📥 Inputs

Image Any The first image to be used in the division operation.

Image Any The second image, which will be used as the divisor for the first image.

📤 Outputs

Image Any The output image resulting from the division operation between the two input images.

🕹️ Controls

This block does not have specific controls, as the operation is determined solely by the input images.

🎨 Features

Element-wise Image Division The block divides the pixel values of the first image by the corresponding pixel values of the second image, applying the operation element-wise.

Dimension Validation The block checks if the input images are of the same dimensions and will raise an error if they are not compatible.

📝 Usage Instructions

  1. Connect Input Images: Connect the two images you wish to divide to the corresponding input sockets.

  2. Evaluate the Block: Run the block to perform the division. The output will be the resulting image with pixel values divided accordingly.

📊 Evaluation

Upon evaluation, this function block will process the two input images and output a single resulting image that represents the pixel-wise division.

💡 Tips and Tricks

Both images must be the same size

Always check that the input images are of identical size. If they are not, use the Image Resize function block to adjust their dimensions accordingly before attempting to use this function.

🛠️ Troubleshooting

Dimension Mismatch Error

If you receive an error stating that the images must be the same size, ensure the dimensions of both images match. The Image Resize function can help you to adjust one of the images.

Unexpected Output Values

If the resulting pixel values seem extreme or unexpected, check the values of the second image in particular, as dividing by very small numbers can result in large output values.

Last updated