Nodes/ComfyUI-MakkiTools/ImageTPSWarp(mki-TPS图像变形)
ComfyUI Node

ImageTPSWarp(mki-TPS图像变形)

Warp an image using Thin Plate Spline (TPS) based on source and target masks. 基于源遮罩和目标遮罩使用薄板样条(TPS)对图像进行变形。

By MakkiShizu·Created about a year ago·Updated 6 months ago· 9
ImageTPSWarp(mki-TPS图像变形)
  • source_image
  • target_mask
  • source_mask
  • IMAGE
n_points150
smoothness0.1
CategoryMakkiTools

Inputs (5)

NameTypeDefaultDescription
source_imageIMAGESource image to be warped 源图像,将被变形
target_maskMASKTarget mask to warp the source image to 目标遮罩,将源图像变形到此形状
n_pointsINT15010–500Number of points to sample from contours 从轮廓采样的点数
smoothnessFLOAT0.10–10Smoothness factor for TPS warping (lower = more precise to contours) TPS变形的平滑系数(越低=对轮廓越精确)
source_maskoptMASKMask for the source image (optional, if not provided, the whole image will be used) 源图像的遮罩(可选,如果不提供,将使用整个图像)

Outputs (1)

NameTypeDescription
IMAGEIMAGE