Apply Mask
This function block allows you to filter out specific parts of an image using a mask image, which should contain black and white patterns. The resulting image will show only the areas defined by the white parts of the mask.
π₯ Inputs
Image
The original image that you want to apply the mask to.
Mask
A binary image where white (255) indicates areas to retain from the original image and black (0) indicates areas to remove.
π€ Outputs
Filtered
The output image that shows the result after applying the mask to the original image.
πΉοΈ Controls
This function block does not have specific controls as it processes the images based on the provided inputs.
π¨ Features
Binary Masking
The block uses a binary mask to selectively filter areas of an image, effectively isolating desired parts.
Real-Time Processing
The mask is applied instantly, allowing users to visualize the results as soon as images are connected.
π Usage Instructions
Connect Input Images: Connect the image you wish to filter to the
Image
input and the mask to theMask
input.Run the Block: Evaluate the block. The output will automatically display the filtered image, highlighting only the areas defined by the white parts of the mask.
π Evaluation
Upon running, the function block processes both the original image and the mask, producing a new image where only the relevant areas are visible based on the mask.
π‘ Tips and Tricks
π οΈ Troubleshooting
Last updated
Was this helpful?