get_bg_esti_params — Gibt die Parameter des Datensatzes aus.
get_bg_esti_params( : : BgEstiHandle : Syspar1, Syspar2, GainMode, Gain1, Gain2, AdaptMode, MinDiff, StatNum, ConfidenceC, TimeC)
Mit get_bg_esti_params werden die Parameter des
Datensatz ausgegeben. Die zurückgegebenen Parameter sind
identisch mit denen für create_bg_esti und
set_bg_esti_params (Erklärung siehe dort).
BgEstiHandle (input_control) bg_estimation → (handle)
ID des BgEsti-Datensatzes.
Syspar1 (output_control) real → (real)
1. Parameter der Systemmatrix.
Syspar2 (output_control) real → (real)
2. Parameter der Systemmatrix.
GainMode (output_control) string → (string)
Art der Gains.
Gain1 (output_control) real → (real)
Kalmangain / Adaptionszeit für Vordergrund.
Gain2 (output_control) real → (real)
Kalmangain / Adaptionszeit für Hintergrund.
AdaptMode (output_control) string → (string)
Adaption der Schwelle.
MinDiff (output_control) real → (real)
Schwelle, für Vordergrund / Hintergrund.
StatNum (output_control) integer → (integer)
Anzahl statistischer Datensätze.
ConfidenceC (output_control) real → (real)
Konfidenzkonstante.
TimeC (output_control) real → (real)
Abklingkonstante.
* Read image for initialization:
read_image(InitImage,'xing/init')
* Initialize BgEsti dataset with
* fixed gains and threshold adaption:
create_bg_esti(InitImage,0.7,0.7,'fixed',0.002,0.02, \
'on',7.0,10,3.25,15.0,BgEstiHandle)
* Read the next image in sequence:
read_image(Image0,'xing/xing000')
* Estimate the background:
run_bg_esti(Image0,ForegroundRegion1,BgEstiHandle)
* Display the foreground region:
dev_display (ForegroundRegion1)
* Read the next image in sequence:
read_image(Image1,'xing/xing001')
* Estimate the background:
run_bg_esti(Image1,ForegroundRegion2,BgEstiHandle)
* Display the foreground region:
dev_display (ForegroundRegion2)
* etc.
* Change only the gain parameter in dataset:
get_bg_esti_params(BgEstiHandle, Syspar1, Syspar2, \
GainMode, Gain1, Gain2, AdaptMode,\
MinDiff, StatNum, ConfidenceC, TimeC)
set_bg_esti_params(BgEstiHandle, Syspar1, Syspar2, \
GainMode, 0.004, 0.08, AdaptMode,\
MinDiff, StatNum, ConfidenceC, TimeC)
* Read the next image in sequence:
read_image(Image3,'xing/xing003')
* Estimate the background:
run_bg_esti(Image3,ForegroundRegion3,BgEstiHandle)
* Display the foreground region:
dev_display(ForegroundRegion3)
* etc
get_bg_esti_params liefert den Wert 2 (H_MSG_TRUE), falls die Parameter
korrekt sind.
Foundation