Delete the background estimation data set.
close_bg_esti deletes the background estimation data set and releases all used memory.
|
BgEstiHandle (input_control) |
bg_estimation -> integer |
| ID of the BgEsti data set. | |
/* 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,BgEstiHandle)
/* read the next image in sequence: */
read_image(Image1,'Image_1')
/* estimate the Background: */
run_bg_esti(Image1,Region1,BgEstiHandle)
/* display the foreground region: */
disp_region(Region1,WindowHandle)
/* read the next image in sequence: */
read_image(Image2,'Image_2')
/* estimate the Background: */
run_bg_esti(Image2,Region2,BgEstiHandle)
/* display the foreground region: */
disp_region(Region2,WindowHandle)
/* etc. */
/* - end of background estimation - */
/* close the dataset: */
close_bg_est(BgEstiHandle).close_bg_esti returns 2 (H_MSG_TRUE) if all parameters are correct.
close_bg_esti is local and processed completely exclusively without parallelization.
Background estimation