Sharpen
Apply angular Gaussian unsharp masking to editable photometries. Supports negative amounts for blurring and optional preservation of total luminous flux.
Undo support: Yes. One command creates one undoable edit for all its targets.
Syntax
Sharpen <id1> [id2 ...] / <amount> <radiusDeg> <thresholdPercent> <preserveFlux:0|1>
All four settings are required. IDs are IntensityModel IDs of editable document channels, not parent luminaire IDs. Combined multi-emitter results cannot be edited directly; supply their emitter IDs. Duplicate IDs are processed once.
| Parameter | Accepted values | Meaning |
|---|---|---|
| amount | Finite number from -1 to 5 | Multiplier, not percent: 1 is the UI's 100%; -1 gives the full blur; 0 is unchanged. |
| radiusDeg | Finite number from 0.1 to 30 | Angular Gaussian standard deviation in degrees. |
| thresholdPercent | Finite number from 0 to 100 | Soft threshold on the original-minus-blurred difference, as a percentage of the original maximum intensity. Ignored for nonpositive amounts. |
| preserveFlux | 0 or 1 |
1 restores original integrated lumens after zero clipping; 0 leaves the result unscaled. |
Examples
Sharpen 12 / 1 5 0 1
Sharpen 12 18 / 0.5 3 1 1
Sharpen 12 / -1 5 0 0
Undo
Redo
Example IDs are placeholders. The first command uses the desktop defaults. The second applies 50% sharpening with a 3-degree radius and a 1%-of-Imax detail threshold. The third blurs without preserving flux.
Response and Safety
Returns OK on success. Invalid settings, missing targets, non-editable combined results, invalid intensities, and unusable flux normalization return ERROR: .... Validation and calculation finish for all targets before any target is modified.
The angular grid, photometry type, symmetry, geometry, metadata, and color samples remain unchanged. The result is nonnegative, with recalculated flux and derived metrics. Undo restores document-owned channel data without replacing its model identity.
See the desktop help for the equations and limitations, and the API overview for connection details and ID conventions.