{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.imatest.com/schema/25-1/straylight-settings-normalization-direct-reference-image",
  "title": "Direct Reference Image Settings",
  "description": "The user-provided settings for computing the normalization factor from a reference image of the direct source.",
  "type": "object",
  "properties": {
    "reference_image": {
      "description": "The user-provided image file used for an on-axis normalization.",
      "$ref": "https://www.imatest.com/schema/25-1/common-filename-md5"
    },
    "aggregation": {
      "description": "The user-provided aggregation method used to compute the normalization factor.",
      "type": "string",
      "enum": [
        "Mean",
        "Median",
        "Total"
      ]
    },
    "camera_normalization_compensation": {
      "description": "The user-provided camera normalization compensation settings.",
      "$ref": "https://www.imatest.com/schema/25-1/straylight-settings-normcomp-camera"
    },
    "source_normalization_compensation": {
      "description": "The user-provided light source normalization compensation settings.",
      "$ref": "https://www.imatest.com/schema/25-1/straylight-settings-normcomp-direct-source"
    }
  },
  "required": [
    "reference_image",
    "aggregation",
    "camera_normalization_compensation",
    "source_normalization_compensation"
  ],
  "unevaluatedProperties": false
}