Nodes/Eden.art nodesuite/Eden_Image_Math
ComfyUI Node Runs on cloud

Eden_Image_Math

Apply math expression to image/mask tensors a,b and c, supports basic math and functions. Example: 'sin(a*pi) * b + c' applies trigonometric operation to a, multiplies by b and adds c. Masks are automatically broadcasted to match image dimensions. Returns both IMAGE and MASK formats with configurable RGB->mask conversion behavior.

By edenartlab·Created 3 years ago·Updated 5 months ago· 118
Eden_Image_Math
  • a
  • b
  • c
  • IMAGE
  • MASK
expression
conversion_modemean
CategoryEden 🌱/image

Inputs (5)

NameTypeDefaultDescription
expressionSTRING
conversion_modeCOMBOmean4 options: mean, r, g, b
aopt*
bopt*
copt*

Outputs (2)

NameTypeDescription
IMAGEIMAGE
MASKMASK