pixelmath_new_image
Create a new image from PixelMath expressions referencing other open views by id. Supports RGB or grayscale, reports truncation fractions, and copies astrometric solution.
Instructions
Run PixelMath to create a NEW image from expressions that reference other open views by id. Color "rgb" takes red/green/blue expressions; color "gray" takes a single expression. The new image is truncated to [0,1]; the reply gives, per channel, the fraction of samples that were below 0 or above 1 before truncation. When size_from has an astrometric solution it is copied onto the new image (same geometry), unless copy_astrometric_solution is false. View ids used inside expressions must be simple identifiers (rename_view renames a view). No pow() — use exp(exponent*ln(base)) or the ^ operator.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| red | No | Red channel expression (color "rgb") | |
| blue | No | Blue channel expression (color "rgb") | |
| color | Yes | ||
| green | No | Green channel expression (color "rgb") | |
| symbols | No | PixelMath symbols; constants only, e.g. "k=0.3". Symbols cannot hold images: write image expressions inline. | |
| output_id | Yes | Id for the new image | |
| size_from | Yes | A view whose width and height the new image copies | |
| expression | No | Single expression for color "gray" | |
| copy_astrometric_solution | No | Copy size_from's astrometric solution onto the new image when it has one |