ClassesClasses | | Operators

give_bg_estigive_bg_estiGiveBgEstiGiveBgEsti (Operator)

Name

give_bg_estigive_bg_estiGiveBgEstiGiveBgEsti — Return the estimated background image.

Signature

give_bg_esti( : BackgroundImage : BgEstiHandle : )

Herror give_bg_esti(Hobject* BackgroundImage, const Hlong BgEstiHandle)

Herror T_give_bg_esti(Hobject* BackgroundImage, const Htuple BgEstiHandle)

void GiveBgEsti(HObject* BackgroundImage, const HTuple& BgEstiHandle)

void HImage::GiveBgEsti(const HBgEsti& BgEstiHandle)

HImage HBgEsti::GiveBgEsti() const

static void HOperatorSet.GiveBgEsti(out HObject backgroundImage, HTuple bgEstiHandle)

void HImage.GiveBgEsti(HBgEsti bgEstiHandle)

HImage HBgEsti.GiveBgEsti()

Description

give_bg_estigive_bg_estiGiveBgEstiGiveBgEstiGiveBgEsti returns the estimated background image of the current BgEsti data set. The background image has the same type and size as the initialization image passed in create_bg_esticreate_bg_estiCreateBgEstiCreateBgEstiCreateBgEsti.

Execution Information

Parameters

BackgroundImageBackgroundImageBackgroundImageBackgroundImagebackgroundImage (output_object)  image objectHImageHImageHobject * (byte / real)

Estimated background image of the current data set.

BgEstiHandleBgEstiHandleBgEstiHandleBgEstiHandlebgEstiHandle (input_control)  bg_estimation HBgEsti, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

ID of the BgEsti data set.

Example (HDevelop)

* 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)
* Give the background image from the aktive dataset:
give_bg_esti(BgImage,BgEstiHandle)
* Display the background image:
dev_display(BgImage)

Example (C)

/* 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,10,3.25,15.0,&BgEstiHandle) ;
/* Read the next image in sequence: */
read_image(&Image0,"xing/xing000") ;
/* Estimate the Background: */
run_bg_esti(Image0,&Region1,BgEstiHandle) ;
/* Give the background image from the aktive dataset: */
give_bg_esti(&BgImage,BgEstiHandle) ;
/* Display the background image: */
disp_image(BgImage,WindowHandle) ;

Example (HDevelop)

* 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)
* Give the background image from the aktive dataset:
give_bg_esti(BgImage,BgEstiHandle)
* Display the background image:
dev_display(BgImage)

Example (HDevelop)

* 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)
* Give the background image from the aktive dataset:
give_bg_esti(BgImage,BgEstiHandle)
* Display the background image:
dev_display(BgImage)

Example (HDevelop)

* 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)
* Give the background image from the aktive dataset:
give_bg_esti(BgImage,BgEstiHandle)
* Display the background image:
dev_display(BgImage)

Result

give_bg_estigive_bg_estiGiveBgEstiGiveBgEstiGiveBgEsti returns 2 (H_MSG_TRUE) if all parameters are correct.

Possible Predecessors

run_bg_estirun_bg_estiRunBgEstiRunBgEstiRunBgEsti

Possible Successors

run_bg_estirun_bg_estiRunBgEstiRunBgEstiRunBgEsti, create_bg_esticreate_bg_estiCreateBgEstiCreateBgEstiCreateBgEsti, update_bg_estiupdate_bg_estiUpdateBgEstiUpdateBgEstiUpdateBgEsti

See also

run_bg_estirun_bg_estiRunBgEstiRunBgEstiRunBgEsti, update_bg_estiupdate_bg_estiUpdateBgEstiUpdateBgEstiUpdateBgEsti, create_bg_esticreate_bg_estiCreateBgEstiCreateBgEstiCreateBgEsti

Module

Foundation


ClassesClasses | | Operators