fetch_bg_esti_params ( : : : Syspar1, Syspar2, GainMode, Gain1, Gain2, AdaptMode, MinDiff, StatNum, ConfidenceC, TimeC )
Return the parameters of the current data set
fetch_bg_esti_params returns the parameters of the
current data set. The returned parameters are the same as in
create_bg_esti and change_bg_esti_params
(see there for an explanation)
Attention
Before calling fetch_bg_esti_params a BgEsti data set has to be
created.
Parameters
Syspar1 (output_control)
|
real -> real
|
1. system matrix parameter |
Syspar2 (output_control)
|
real -> real
|
2. system matrix parameter |
GainMode (output_control)
|
string -> string
|
gain type |
Gain1 (output_control)
|
real -> real
|
kalman gain / foreground adaptation time |
Gain2 (output_control)
|
real -> real
|
kalman gain / background adaptation time |
AdaptMode (output_control)
|
string -> string
|
threshold adaptation |
MinDiff (output_control)
|
real -> real
|
foreground/background threshold |
StatNum (output_control)
|
integer -> integer
|
number of statistic data sets |
ConfidenceC (output_control)
|
real -> real
|
confidence constant |
TimeC (output_control)
|
real -> real
|
constant for decay time |
Example
/* read Init-Image:*/
read_image(InitImage::'Init_Image':) >
/* 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:) >
/* read the next image in sequence: */
read_image(Image1::'Image_1':) >
/* estimate the Background: */
run_bg_esti(Image1:Region1::) >
/* display the foreground region: */
disp_region(Region1) >
/* read the next image in sequence: */
read_image(Image2::'Image_2':) >
/* estimate the Background: */
run_bg_esti(Image2:Region2::) >
/* display the foreground region: */
disp_region(Region2) >
/* etc. */
/* change only the gain parameter in dataset: */
fetch_bg_esti_params(:::par1,par2,par3,par4,par5,par6,par7,par8,par9,par10) >
change_bg_esti_params(::par1,par2,par3,0.004,0.08,par6,par7,par8,par9,par10:) >
/* read the next image in sequence: */
read_image(Image3::'Image_3':) >
/* estimate the Background: */
run_bg_esti(Image3:Region3::) >
/* display the foreground region: */
disp_region(Region3) >
/* etc. */
Result
fetch_bg_esti_params returns TRUE if all parameters are
correct.
Possible Predecessors
create_bg_esti,
set_bg_esti
Possible Successors
run_bg_esti
See also
change_bg_esti_params
Copyright © 1996-1997 MVTec Software GmbH