Visit ComfyUI Online for ready-to-use ComfyUI environment
Specialized node for blurring outer image regions based on a mask, ideal for creating smooth transitions and enhancing visual depth.
MaskOuterBlur is a specialized node designed to apply a blurring effect to the outer regions of an image based on a given mask. This node is particularly useful for AI artists who want to create a smooth transition between the focused and blurred areas of an image, enhancing the visual appeal and depth. The primary goal of MaskOuterBlur is to selectively blur parts of an image while preserving the details in the masked regions, allowing for creative control over the final output. By leveraging both CPU and GPU processing capabilities, this node ensures efficient performance and high-quality results.
The source image to which the blurring effect will be applied. This parameter is crucial as it defines the base image that will undergo the selective blurring process. The image should be in a compatible format, typically a NumPy array or similar.
A binary mask that indicates the regions of the image to be preserved (non-blurred) and the regions to be blurred. Pixels with a value of 0 in the mask will be blurred, while pixels with a value greater than 0 will remain sharp. This mask allows for precise control over which parts of the image are affected by the blur.
The convolution kernel used for the blurring process. This parameter defines the shape and intensity of the blur effect. The kernel should be a 2D array with positive values that sum up to 1, typically generated using a Gaussian function.
The size of the convolution kernel. This parameter determines the extent of the blurring effect. Larger kernel sizes result in a more pronounced blur, while smaller sizes produce a subtler effect. The value should be an odd integer to ensure a symmetric kernel.
The width of the source image. This parameter is used to correctly index and process the image data during the blurring operation. It should match the actual width of the src
image.
The height of the source image. Similar to the width parameter, this is used to correctly index and process the image data. It should match the actual height of the src
image.
The output image with the applied blurring effect. This image will have the same dimensions as the source image but with the specified regions blurred according to the mask. The output is typically a NumPy array or similar format, ready for further processing or display.
© Copyright 2024 RunComfy. All Rights Reserved.