close_bg_esti ( : : : )

Delete the current BgEsti data set

close_bg_esti deletes the current BgEsti data set and releases all used memory. A new data set then has to me marked as current set.


Attention

Before calling close_bg_esti, a data set has to be marked as current set.


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,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. */
/* - end of background estimation - */
/* close the active dataset: */
close_bg_est(:::).

Result

close_bg_esti returns TRUE if all parameters are correct.


Possible Predecessors

run_bg_esti, set_bg_esti


See also

create_bg_esti, set_bg_esti, get_bg_esti



Copyright © 1996-1997 MVTec Software GmbH