OpenCV exp_1
Exp_1 — the identical twin of the exponential node
- src
- dst
- nparray
exp_1 is exp_0 wearing a different number. Same inputs, same output, same code - this is the overload-twin artifact of opencv-comfyui (geroldmeisinger/opencv-comfyui), which generates one node per OpenCV stub overload and numbers the lookalikes. Use exp_0. This page is here so you don't go hunting for a difference that doesn't exist.
What it does
Element-wise exponential: every value x in the input nparray becomes e^x. That's it. It's a math primitive from OpenCV's core module, useful inside log/exp pairs for HDR and tone-mapping pipelines and for arithmetic on float light data. It is not a user-facing image effect - run it on a normal 8-bit image and the values explode (e^10 ≈ 22,026 on a pixel that can hold 255). Keep it to float arrays and processing stages.
Inputs and outputs
- src (NPARRAY) - your array, ideally float.
- dst (NPARRAY, optional) - out-parameter; leave unconnected.
- Output: nparray -
e^xelement-wise.
Wiring it up
nparray in, nparray out, same as _0. Convert Comfy IMAGE with Image2Nparray on the way in; on the way out, don't assume the result is a displayable image - feeding a non-image array to Nparrays2Image throws the pack's 'NoneType' object has no attribute 'shape' error. For a visible exponential-style curve on an actual image, a gamma or tone-curve node from a post-processing pack is the right tool; this is the raw math.
Install and gotchas
Via ComfyUI Manager (search "opencv-comfyui") or git clone https://github.com/geroldmeisinger/opencv-comfyui into ComfyUI/custom_nodes, then restart. Requirements: opencv-contrib-python, numpy, torch; no model files. Standard pack traps apply - batch_size-1 images, Python-literal strings, and the author's "Expect dragons!" warning. Full context on the exp_0 page.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| src | NPARRAY | — | |
| dstopt | NPARRAY | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| nparray | NPARRAY | — |