ComfyUI Node
DDX
A ComfyUI node in FunctionAsTexture with 2 inputs and 1 output.
DDX
- imga
- IMAGE
◄formulax_shift = 1
y_shift = 0
height, width = imga.shape[1:3]
new_x = np.clip(np.arange(width) + x_shift, 0, width - 1)
new_y = np.clip(np.arange(height) + y_shift, 0, height - 1)
X, Y = np.meshgrid(new_x, new_y)
result = (imga[:, Y, X, :]-imga)/16 *width►
CategoryFunctionAsTexture
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| formula | STRING | x_shift = 1 y_shift = 0 height, width = imga.shape[1:3] new_x = np.clip(np.arange(width) + x_shift, 0, width - 1) new_y = np.clip(np.arange(height) + y_shift, 0, height - 1) X, Y = np.meshgrid(new_x, new_y) result = (imga[:, Y, X, :]-imga)/16 *width | — |
| imgaopt | IMAGE | Optional ,Reference size ,Default =(1,512,512,3) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |