Visit ComfyUI Online for ready-to-use ComfyUI environment
Perform various morphological operations on images for preprocessing, noise reduction, and feature extraction.
The ImageMagick Morphology node is a powerful tool designed to perform a variety of morphological operations on images, which are essential for tasks such as image preprocessing, noise reduction, and feature extraction. This node leverages advanced algorithms to modify the structure of an image based on a specified kernel, allowing you to enhance or suppress specific features. Whether you need to erode or dilate an image, perform opening or closing operations, or apply more complex transformations like gradient, top hat, or bottom hat, this node provides a versatile set of functions to achieve your desired results. By manipulating the image's morphology, you can significantly improve the quality and clarity of your images, making it an invaluable asset for AI artists and designers.
This parameter represents the input image that you want to process. It should be provided in a compatible image format that the node can handle.
This parameter specifies the morphological operation to be applied to the image. The available options include undefined
, convolve
, correlate
, erode
, dilate
, erode_intensity
, dilate_intensity
, iterative_distance
, open
, close
, open_intensity
, close_intensity
, smooth
, edgein
, edgeout
, edge
, tophat
, bottom_hat
, hit_and_miss
, thinning
, thicken
, distance
, and voronoi
. The default value is convolve
. Each method performs a different type of morphological transformation, affecting the image in unique ways.
This parameter defines the shape and size of the kernel used for the morphological operation. The options include undefined
, unity
, gaussian
, dog
, log
, blur
, comet
, binomial
, laplacian
, sobel
, frei_chen
, roberts
, prewitt
, compass
, kirsch
, diamond
, square
, rectangle
, octagon
, disk
, plus
, cross
, ring
, peaks
, edges
, corners
, diagonals
, line_ends
, line_junctions
, ridges
, convex_hull
, thin_se
, skeleton
, chebyshev
, manhattan
, octagonal
, euclidean
, and user_defined
. The default value is unity
. The kernel determines how the morphological operation is applied to the image.
This parameter specifies the number of times the morphological operation should be applied. It is an integer value with a default of 1, a minimum of 0, and a maximum of 1024. Increasing the number of iterations can enhance the effect of the operation.
This parameter allows you to select the specific color channel on which the morphological operation will be performed. The options include undefined
, red
, gray
, cyan
, green
, magenta
, blue
, yellow
, black
, alpha
, opacity
, index
, readmask
, write_mask
, meta
, composite_channels
, all_channels
, true_alpha
, rgb
, rgb_channels
, gray_channels
, sync_channels
, and default_channels
. The default value is red
. This parameter enables you to target specific parts of the image for the morphological transformation.
The output parameter is the processed image resulting from the applied morphological operation. This image reflects the changes made based on the selected method, kernel, iterations, and channel, providing you with a transformed version of the input image that highlights or suppresses specific features as desired.
method
and kernel
combinations to achieve various artistic effects or to enhance specific features in your images.iterations
parameter to control the intensity of the morphological operation. Higher iterations can produce more pronounced effects.channel
to target specific color components of your image, which can be particularly useful for color-based feature extraction or enhancement.<operation>
for morphology. Must be one of 'erode', 'dilate', 'open', 'close', 'gradient', 'tophat', 'bottomhat'method
parameter is set to one of the supported operations listed in the error message.iterations
parameter is set to a value outside the allowed range.iterations
parameter is within the range of 0 to 1024.© Copyright 2024 RunComfy. All Rights Reserved.