ComfyUI  >  Nodes  >  Bmad Nodes >  RemapInsideParabolasAdvanced

ComfyUI Node: RemapInsideParabolasAdvanced

Class Name

RemapInsideParabolasAdvanced

Category
Bmad/CV/Transform
Author
bmad4ever (Account age: 3591 days)
Extension
Bmad Nodes
Latest Updated
8/2/2024
Github Stars
0.1K

How to Install Bmad Nodes

Install this extension via the ComfyUI Manager by searching for  Bmad Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Bmad Nodes 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 Online 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

RemapInsideParabolasAdvanced Description

Remap image regions within two parabolas with advanced control for non-linear manipulation and precise deformation.

RemapInsideParabolasAdvanced:

The RemapInsideParabolasAdvanced node is designed to remap image regions within two parabolas, providing advanced control over the transformation process. This node allows you to adjust the remapping both along the curve of the parabolas and orthogonally to them, offering a high degree of customization. The primary benefit of this node is its ability to manipulate image regions in a non-linear fashion, which can be particularly useful for artistic effects or specific image processing tasks that require precise control over the deformation of image areas. By leveraging advanced mathematical transformations, this node ensures that the remapped regions maintain a coherent and visually appealing structure, even when subjected to significant adjustments.

RemapInsideParabolasAdvanced Input Parameters:

dst_mask_with_2_parabolas

This parameter expects a mask image that contains two parabolas. The mask defines the regions of the image that will be remapped. The parabolas should be clearly defined within the mask to ensure accurate remapping. This input is crucial as it sets the boundaries for the transformation.

curve_wise_adjust

This is a float parameter that adjusts the remapping along the curve of the parabolas. The default value is 1, with a minimum of 0.3 and a maximum of 2, adjustable in steps of 0.01. Increasing this value will intensify the remapping effect along the curve, while decreasing it will soften the effect. This parameter allows you to control the degree of deformation along the parabolic curves.

ortho_wise_adjust

This float parameter controls the remapping orthogonally to the parabolas. The default value is 1, with a minimum of 1 and a maximum of 3, adjustable in steps of 0.01. Adjusting this parameter affects how the image is stretched or compressed perpendicular to the parabolas, providing additional control over the transformation's intensity and direction.

flip_ortho

This boolean parameter, with a default value of False, determines whether the orthogonal adjustment should be flipped. When set to True, the remapping effect orthogonal to the parabolas is inverted, which can be useful for achieving specific visual effects or correcting the orientation of the transformation.

RemapInsideParabolasAdvanced Output Parameters:

xs

This output provides the x-coordinates of the remapped image pixels. These coordinates are adjusted based on the input parameters and define the new horizontal positions of the pixels within the transformed image.

ys

This output provides the y-coordinates of the remapped image pixels. Similar to the x-coordinates, these are adjusted according to the input parameters and define the new vertical positions of the pixels within the transformed image.

bb

This output gives the bounding box coordinates of the region of interest (ROI) within the remapped image. The bounding box helps in identifying the area that has been affected by the transformation, which can be useful for further processing or analysis.

RemapInsideParabolasAdvanced Usage Tips:

  • Ensure that the mask image clearly defines two parabolas to achieve accurate remapping results.
  • Experiment with the curve_wise_adjust and ortho_wise_adjust parameters to find the optimal settings for your specific artistic or processing needs.
  • Use the flip_ortho parameter to invert the orthogonal adjustment if the initial transformation does not meet your expectations.
  • Preview the remapped image to fine-tune the input parameters for the best visual outcome.

RemapInsideParabolasAdvanced Common Errors and Solutions:

Couldn't match two endpoints to one of the contours. It may be the case that the parabolas are too flat.

  • Explanation: This error occurs when the node cannot identify two distinct endpoints for one of the parabolas, possibly due to the parabolas being too flat or not well-defined.
  • Solution: Ensure that the parabolas in the mask image are clearly defined and have distinct endpoints. Adjust the mask image if necessary to create more pronounced parabolas.

Parabola Remap requires exactly 2 drawn lines, however it obtained <number> contours.

  • Explanation: This error indicates that the mask image does not contain exactly two parabolas, which is required for the remapping process.
  • Solution: Verify that the mask image contains exactly two parabolas. If there are more or fewer contours, modify the mask image to meet the requirement.

The remapped image appears distorted or incorrect.

  • Explanation: This issue can arise from inappropriate settings of the curve_wise_adjust and ortho_wise_adjust parameters.
  • Solution: Adjust the curve_wise_adjust and ortho_wise_adjust parameters incrementally to achieve the desired remapping effect. Preview the changes to ensure the transformation is as expected.

RemapInsideParabolasAdvanced Related Nodes

Go back to the extension to check out more related nodes.
Bmad Nodes
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.