ComfyUI  >  Nodes  >  ComfyUI-MagickWand >  ImageMagick Adaptive Sharpen

ComfyUI Node: ImageMagick Adaptive Sharpen

Class Name

ImageMagick Adaptive Sharpen

Category
MagickWand/Effect
Author
Fannovel16 (Account age: 3129 days)
Extension
ComfyUI-MagickWand
Latest Updated
6/20/2024
Github Stars
0.1K

How to Install ComfyUI-MagickWand

Install this extension via the ComfyUI Manager by searching for  ComfyUI-MagickWand
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-MagickWand in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Cloud for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ImageMagick Adaptive Sharpen Description

Enhance image sharpness with adaptive sharpening based on local contrast for balanced visual quality.

ImageMagick Adaptive Sharpen:

The ImageMagick Adaptive Sharpen node is designed to enhance the sharpness of an image by selectively applying sharpening effects based on the local contrast within the image. This adaptive approach ensures that areas with high contrast are sharpened more aggressively, while regions with low contrast are treated more gently, preserving the natural look of the image. This method is particularly useful for improving the clarity and detail of images without introducing excessive noise or artifacts. By using this node, you can achieve a balanced sharpening effect that enhances the overall visual quality of your artwork.

ImageMagick Adaptive Sharpen Input Parameters:

image

This parameter represents the input image that you want to apply the adaptive sharpening effect to. The image should be in a compatible format that the node can process.

radius

The radius parameter controls the size of the area around each pixel that is considered when applying the sharpening effect. A larger radius will result in a more pronounced sharpening effect, while a smaller radius will produce a subtler effect. The value can range from 0.0 to 1024, with a default value of 0.0.

sigma

The sigma parameter determines the standard deviation of the Gaussian function used in the sharpening process. It affects the amount of blurring applied before the sharpening effect is calculated. A higher sigma value will result in a smoother sharpening effect, while a lower value will produce a more detailed effect. The value can range from 0.0 to 1024, with a default value of 0.0.

channel

This parameter allows you to specify which color channel(s) the sharpening effect should be applied to. You can choose from a variety of options, including 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.

ImageMagick Adaptive Sharpen Output Parameters:

IMAGE

The output parameter is the sharpened image. This image will have the adaptive sharpening effect applied based on the specified input parameters, resulting in enhanced clarity and detail while preserving the natural appearance of the original image.

ImageMagick Adaptive Sharpen Usage Tips:

  • Experiment with different radius and sigma values to find the optimal sharpening effect for your image. Start with small increments to avoid over-sharpening.
  • Use the channel parameter to target specific color channels if you want to enhance certain aspects of the image without affecting others.
  • Combine the adaptive sharpen effect with other ImageMagick nodes, such as blur or contrast adjustment, to achieve a more refined and polished final result.

ImageMagick Adaptive Sharpen Common Errors and Solutions:

ValueError: Invalid radius or sigma value

  • Explanation: This error occurs when the radius or sigma value provided is outside the acceptable range.
  • Solution: Ensure that the radius and sigma values are within the range of 0.0 to 1024. Double-check the input values and adjust them accordingly.

TypeError: Unsupported image format

  • Explanation: This error occurs when the input image is in a format that the node cannot process.
  • Solution: Convert the input image to a compatible format before applying the adaptive sharpen effect. Common formats include JPEG, PNG, and TIFF.

RuntimeError: Channel selection not supported

  • Explanation: This error occurs when an invalid channel option is selected.
  • Solution: Verify that the channel parameter is set to one of the supported options listed in the input parameters section. Adjust the selection to a valid channel option.

ImageMagick Adaptive Sharpen Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-MagickWand
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.