Sharpen Intensity
The Sharpen tool changes the local contrast of an intensity distribution. Positive amounts increase local peaks and deepen nearby valleys; negative amounts smooth the distribution. Open it from Edit > Sharpen, immediately after Smoothing.
Workflow
- Select one or more editable photometries. For a multi-emitter luminaire, select its emitter channels rather than the combined result.
- Set the amount, angular radius, and optional detail threshold. Press Enter or leave an input field to refresh the preview.
- Compare the original and modified distributions in the before/after view. Previewing does not modify the document.
- Press UPDATE to apply the settings to all selected editable photometries in one undoable action.
Reset restores the default settings; it does not undo a previously applied edit. Use Undo to restore the original data.
Parameters
| Setting | Default | Range | Meaning |
|---|---|---|---|
| Amount | 100% | -100% to 500% | Strength of the change. Zero leaves the distribution unchanged; -100% applies the full Gaussian blur. |
| Radius | 5 degrees | 0.1 to 30 degrees | Gaussian standard deviation on the direction sphere. The numerical kernel extends to three times this radius. |
| Threshold | 0% of Imax | 0% to 100% | Suppresses small differences between the original and blurred intensity. Used only for positive sharpening. |
| Preserve luminous flux | On | On/off | Rescales the result to retain the original integrated lumens. |
The radius is measured in degrees, not in rows or columns of the intensity table. Its physical meaning therefore remains comparable across different angular resolutions and photometry coordinate systems. Sampling and interpolation still limit the detail recoverable from a coarse file.
Invalid inputs are highlighted and prevent applying the operation. Missing or non-editable targets are rejected without applying the operation to other targets.
Calculation
The tool uses Gaussian unsharp masking. Let I be the original intensity, B its angular Gaussian blur, and a the amount divided by 100. Without a threshold:
Iout = max(0, I + a * (I - B))
For positive amounts, the threshold T = thresholdPercent / 100 * Imax is subtracted from the magnitude of the difference, stopping at zero:
d = sign(I - B) * max(abs(I - B) - T, 0)
Iout = max(0, I + a * d)
For negative amounts the threshold is ignored. The result is a blend of the original and blurred distributions. Intensities remain nonnegative.
The blur is evaluated over a spherical neighborhood using Gaussian weights and solid-angle weighting. It uses the existing directional interpolation and symmetry conventions of the source, including zero response outside its supported angular domain. The original angular table, coordinate system, symmetry, geometry, metadata, and color samples are retained. Derived photometric quantities are recalculated.
With flux preservation enabled, the nonnegative result is rescaled by the ratio of original flux to modified flux. This redistributes the same total lumens; it does not preserve peak intensity or beam angle. An all-zero distribution remains zero. A nonzero distribution with unusable near-zero flux cannot be normalized and is rejected. With preservation disabled, total luminous flux may change.
Interpretation and Limitations
Sharpening is an editing operation, not a reconstruction of lost measurement information. Large amounts can amplify noise, produce halos, or remove weak regions through zero clipping. Inspect the preview and check peak intensity, beam shape, glare, and other application-specific metrics before using or exporting the result.
The operation changes directional intensity, not the luminaire's physical optics or spectral response. Retained color samples are not spatially blurred. Keep an unmodified copy of measured photometry when using the tool to explore a design target.
For automation, see the Sharpen command. The underlying unsharp-mask relationship is described in the scikit-image unsharp masking example; this implementation applies its Gaussian neighborhood to angular photometry rather than image pixels.