{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.imatest.com/schema/25-1/straylight-results-per-capture-subset",
  "title": "Stray Light Results: Per Capture Subset",
  "description": "Stray light results from a subset of a capture.",
  "type": "object",
  "properties": {
    "channel": {
      "description": "The name of the channel.",
      "type": "string"
    },
    "roi": {
      "description": "The name of the region of interest.",
      "type": "string",
      "const": "All"
    },
    "metric_image_file": {
      "description": "The metric image file associated with this subset.",
      "$ref": "https://www.imatest.com/schema/25-1/common-filename-md5-array"
    },
    "data_transform": {
      "description": "The transform applied to the metric image.",
      "$ref": "https://www.imatest.com/schema/25-1/stray-light-settings-data-transform-enum"
    },
    "min": {
      "description": "The minimum stray light value within the subset.",
      "type": "number",
      "$comment": "Note any masked-out pixels are excluded from this summary statistic."
    },
    "min_non_zero": {
      "description": "The minimum (of the non-zero values in the original image) stray light value within the subset.",
      "type": "number",
      "$comment": "Note any masked-out pixels are excluded from this summary statistic."
    },
    "max": {
      "description": "The maximum stray light value within the subset.",
      "type": "number",
      "$comment": "Note any masked-out pixels are excluded from this summary statistic."
    },
    "mean": {
      "description": "The mean stray light value within the subset.",
      "type": "number",
      "$comment": "Note any masked-out pixels are excluded from this summary statistic."
    },
    "median": {
      "description": "The median stray light value within the subset.",
      "type": "number",
      "$comment": "Note any masked-out pixels are excluded from this summary statistic."
    },
    "standard_deviation": {
      "description": "The standard deviation of the stray light values within the subset.",
      "type": "number",
      "$comment": "Note any masked-out pixels are excluded from this summary statistic."
    },
    "rms": {
      "description": "The root mean square of the stray light values within the subset.",
      "type": "number",
      "$comment": "Note any masked-out pixels are excluded from this summary statistic."
    },
    "total_count": {
      "description": "The number or percentage (0-100) of all of the pixels within the subset.",
      "type": "number"
    },
    "source_count": {
      "description": "The number or percentage (0-100) of source-masked pixels within the subset.",
      "type": "number"
    },
    "saturation_count": {
      "description": "The number or percentage (0-100) of pixels at or above the computed saturation level.",
      "type": "number"
    },
    "percentiles": {
      "description": "The percentiles of the stray light values within the subset.",
      "$ref": "https://www.imatest.com/schema/25-1/common-results-percentiles"
    },
    "level_counts": {
      "description": "The number or percentage (0-100) of pixels of stray light worse than the user-provided thresholds within the subset.",
      "$ref": "https://www.imatest.com/schema/25-1/straylight-results-per-capture-level-count"
    }
  },
  "required": [
    "channel",
    "roi",
    "metric_image_file",
    "data_transform",
    "min",
    "min_non_zero",
    "max",
    "mean",
    "median",
    "standard_deviation",
    "rms",
    "total_count",
    "source_count",
    "saturation_count",
    "percentiles",
    "level_counts"
  ],
  "unevaluatedProperties": false,
  "$comment": "A subset is a combination of an analysis channel and a region of interest."
}