run_pixelmath
Executes a PixelMath expression in place on a view, truncating results to [0,1] and reporting per-channel out-of-range statistics.
Instructions
Run an arbitrary PixelMath expression in place on a view. The result is truncated to [0,1]; the reply gives, per channel, the fraction of samples that were below 0 or above 1 before truncation, and their min and max. RULES: (1) NO pow() — use exp(exponent*ln(base)). (2) Channel access is $T[0] for R, $T[1] for G, $T[2] for B — NOT $T.R or $T.B. (3) For other images use viewId[0], viewId[1], viewId[2].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | No | Symbol declarations (comma-separated) | |
| view_id | Yes | View ID to process | |
| expression | Yes | PixelMath expression using $T for current pixel value | |
| single_expression | No | Apply the same expression to all channels (default true) |