set_bg_esti ( : : DatasetID : )

Mark a data set as current set

set_bg_esti marks a data set -- created with the ID DatasetID -- as the current data set. All succeding commands for background estimation refer to this data set.


Attention

Before calling set_bg_esti a BgEsti data set with the ID has DatasetID to be created.


Parameters

DatasetID (input_control)
integer -> integer
ID of the current data set
Default value: 1
Suggested values: 1, 2, 3


Example
/* read Init-Image: */
read_image(:InitImage:'Init_Image':) >
/* initialize 1. BgEsti-Dataset with fixed gains and threshold adaption */
create_bg_esti(InitImage::0.7,0.7,'fixed',0.002,0.02,'on',7,10,3.25,15.0:) >
get_bg_esti(:::id1) >
/* initialize 2. BgEsti-Dataset with frame orientated gains and fixed threshold */
create_bg_esti(InitImage::0.7,0.7,'frame',30.0,4.0,'off',9,10,3.25,15.0:) >
/* set the dataset aktive (here the first): */
set_bg_esti(::id1:).

Result

set_bg_esti returns TRUE if all parameters are correct.


Possible Predecessors

create_bg_esti


Possible Successors

run_bg_esti, update_bg_esti, give_bg_esti, change_bg_esti_params, close_bg_esti


See also

create_bg_esti, get_bg_esti



Copyright © 1996-1997 MVTec Software GmbH