Skip to content
firepick1 (pixel) edited this page Jul 7, 2014 · 12 revisions

Overview

CVE calc-offset is useful for calibration and positioning. It calculates the offset between the current camera image and a saved image.

Process Output

The CVE process.fire resource returns an offset JSON object with per-channel offset metrics. See calcOffset:

{
  ...
  "offset":{
    "channels":{
      "0":{ "dx":14, "dy":0, "match":"0.984573" }
    },
    "rects":[
      { "x":400, "y":100, "width":736, "height":136, "angle":0 },
      { "x":400, "y":100, "width":800, "height":200, "angle":0 }
    ]
  },
  ...
}

Pipeline

A sample FireSight pipeline implementing this CVE is:

[
  {"op":"calcOffset", 
    "name":"offset", 
    "minval":"{{minval||0.7}}",
    "roi":"{{roi||[]}}",
    "xtol":"{{xtol||32}}",
    "ytol":"{{ytol||32}}",
    "channels":"{{channels||[]}}", 
    "template":"{{template}}"
  }
]

Properties

  • roi JSON array [x,y,width,height] region of interest
  • rectColor color for ROI rectangles
  • xtol maximum detectable horizontal pixel offset
  • ytol maximum detectable vertical pixel offset

See Also

Clone this wiki locally