TwiceAsNice  2019-02-18
Variables
setOffset Namespace Reference

Variables

float bias_level = 100.0
 
tuple off_minmax = (200, 400)
 
 refrect = Nice.Rect(50.0, 50.0, 200.0, 200.0)
 
list arg = ["pdvcam", "--CAMERA.CONFIG=[ALIAS=laos.sx.hws.pcam.ccd47-svr.CAMERA]"]
 
 app = Nice.Application(arg)
 
 config = app.config()
 
 ctrl = BasdaVinoCamera.VinoCameraCtrl.create("CAMERA.CTRL")
 
 push = BasdaVinoCamera.VinoImagePushU16.create("CAMERA.PUSH")
 
 chipsize = ctrl.chipsize()
 
 channels = ctrl.channels()
 
 channelpos = ctrl.channelpos()
 
 channelscale = ctrl.channelscale()
 
 channelnum = int(channels.width() * channels.height())
 
 fsize = Nice.Size(chipsize.width() / channels.width(), chipsize.height() / channels.height())
 
 fhalf = Nice.Size(fsize.width() / 2.0, fsize.height() / 2.0)
 
 fcenter = Nice.Point(fsize.width() / 2.0, fsize.height() / 2.0)
 
list refwin = []
 
 chrect = Nice.Rect(refrect)
 
 pixel
 
list stat = [[], []]
 
list bias = [[], []]
 
 biasAll = ctrl.biasAll()
 
 w = BasdaVino.ImageU16().crop(BasdaVino.ImageU16(push.getNewImage()), refwin[ch])
 
list final_off_minmaxsets = []
 
tuple m0 = (stat[0][ch].quantileLower(0.05) + stat[0][ch].quantileUpper(0.95)) / 2.0
 
tuple m1 = (stat[1][ch].quantileLower(0.05) + stat[1][ch].quantileUpper(0.95)) / 2.0
 
tuple m = (m0 - m1) / (bias[0][ch] - bias[1][ch])
 
tuple n = m0 - (m * bias[0][ch])
 
 off_minmaxset = int((bias_level - n) / m)
 

Variable Documentation

◆ app

setOffset.app = Nice.Application(arg)

◆ arg

list setOffset.arg = ["pdvcam", "--CAMERA.CONFIG=[ALIAS=laos.sx.hws.pcam.ccd47-svr.CAMERA]"]

◆ bias

list setOffset.bias = [[], []]

◆ bias_level

float setOffset.bias_level = 100.0

◆ biasAll

setOffset.biasAll = ctrl.biasAll()

◆ channelnum

setOffset.channelnum = int(channels.width() * channels.height())

◆ channelpos

setOffset.channelpos = ctrl.channelpos()

◆ channels

setOffset.channels = ctrl.channels()

◆ channelscale

setOffset.channelscale = ctrl.channelscale()

◆ chipsize

setOffset.chipsize = ctrl.chipsize()

◆ chrect

setOffset.chrect = Nice.Rect(refrect)

◆ config

setOffset.config = app.config()

◆ ctrl

setOffset.ctrl = BasdaVinoCamera.VinoCameraCtrl.create("CAMERA.CTRL")

◆ fcenter

setOffset.fcenter = Nice.Point(fsize.width() / 2.0, fsize.height() / 2.0)

◆ fhalf

setOffset.fhalf = Nice.Size(fsize.width() / 2.0, fsize.height() / 2.0)

◆ final_off_minmaxsets

list setOffset.final_off_minmaxsets = []

◆ fsize

setOffset.fsize = Nice.Size(chipsize.width() / channels.width(), chipsize.height() / channels.height())

◆ m

tuple setOffset.m = (m0 - m1) / (bias[0][ch] - bias[1][ch])

◆ m0

tuple setOffset.m0 = (stat[0][ch].quantileLower(0.05) + stat[0][ch].quantileUpper(0.95)) / 2.0

◆ m1

tuple setOffset.m1 = (stat[1][ch].quantileLower(0.05) + stat[1][ch].quantileUpper(0.95)) / 2.0

◆ n

tuple setOffset.n = m0 - (m * bias[0][ch])

◆ off_minmax

tuple setOffset.off_minmax = (200, 400)

◆ off_minmaxset

setOffset.off_minmaxset = int((bias_level - n) / m)

◆ pixel

setOffset.pixel
Initial value:
1 = Nice.Point(channelpos[ch].x() * fsize.width(),
2  channelpos[ch].y() * fsize.height())
int y
Definition: lutinvert.py:13
x
Definition: meteoRRD_updater.py:125
The Nice::Point class defines a point in the plane using floating point precision.
Definition: Point.h:57

◆ push

setOffset.push = BasdaVinoCamera.VinoImagePushU16.create("CAMERA.PUSH")

◆ refrect

setOffset.refrect = Nice.Rect(50.0, 50.0, 200.0, 200.0)

◆ refwin

list setOffset.refwin = []

◆ stat

list setOffset.stat = [[], []]

◆ w

setOffset.w = BasdaVino.ImageU16().crop(BasdaVino.ImageU16(push.getNewImage()), refwin[ch])