EikonalWorks User's Manual
  • Workbench
  • IntensityView
  • Core Calculations
Search Results for

    Show / Hide Table of Contents
    • Overview and Client Examples
    • Complete Agent Reference
    • File Input and Output
      • OpenFile
      • SaveFile
      • RemoveLid
    • Queries
      • GetParameter
      • GetProperty
      • GetPropertyField
    • Properties and Flux
      • SetProperty
      • SetLuminousFlux
      • SetLampFlux
      • SetLampNumber
      • SetInputPower
      • SetEmitterLOR
      • SetPhotometryUnit
    • Photometric Transforms
      • SetSymmetryData
      • SetResolution
      • RotateEuler
      • RotateQuaternion
      • Scale
      • AutoAlignPhotometry
      • Smoothen
      • EraseUlor
      • Sharpen
    • Geometry
      • SetGeometry
    • Luminaire and Channel Management
      • ConfigureLuminaire
      • DuplicateLuminaire
      • MoveMesh
      • RemoveMesh
      • Combine
    • Map Modification
      • PaintBrush
      • FillSelection
      • ScaleAdd
      • CloneTool
      • ApplyTransform
    • Roadway Scenarios
      • NewRoadwayScenario
      • QueryRoadwayScenario
      • EditRoadwayScenario
      • CalculateRoadwayScenario
      • GetRoadwayScenarioData
      • LoadRoadwayScenarioFile
      • SaveRoadwayScenarioFile
    • View
      • SetCoordinateSystem
    • Session and History
      • Undo
      • Redo
      • StartCommandServer
      • StopCommandServer

    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.

    In this article
    Back to top Generated by DocFX