KlassenKlassenKlassenKlassen | | | | Operatoren

update_bg_estiupdate_bg_estiUpdateBgEstiupdate_bg_estiUpdateBgEstiUpdateBgEsti (Operator)

Name

update_bg_estiupdate_bg_estiUpdateBgEstiupdate_bg_estiUpdateBgEstiUpdateBgEsti — Verändert geschätztes Hintergrundbild.

Signatur

update_bg_esti(PresentImage, UpDateRegion : : BgEstiHandle : )

Herror update_bg_esti(const Hobject PresentImage, const Hobject UpDateRegion, const Hlong BgEstiHandle)

Herror T_update_bg_esti(const Hobject PresentImage, const Hobject UpDateRegion, const Htuple BgEstiHandle)

Herror update_bg_esti(Hobject PresentImage, Hobject UpDateRegion, const HTuple& BgEstiHandle)

void HImage::UpdateBgEsti(const HRegion& UpDateRegion, const HBgEsti& BgEstiHandle) const

void HBgEsti::UpdateBgEsti(const HImage& PresentImage, const HRegion& UpDateRegion) const

void UpdateBgEsti(const HObject& PresentImage, const HObject& UpDateRegion, const HTuple& BgEstiHandle)

void HImage::UpdateBgEsti(const HRegion& UpDateRegion, const HBgEsti& BgEstiHandle) const

void HBgEsti::UpdateBgEsti(const HImage& PresentImage, const HRegion& UpDateRegion) const

void HOperatorSetX.UpdateBgEsti(
[in] IHUntypedObjectX* PresentImage, [in] IHUntypedObjectX* UpDateRegion, [in] VARIANT BgEstiHandle)

void HImageX.UpdateBgEsti(
[in] IHRegionX* UpDateRegion, [in] IHBgEstiX* BgEstiHandle)

void HBgEstiX.UpdateBgEsti(
[in] IHImageX* PresentImage, [in] IHRegionX* UpDateRegion)

static void HOperatorSet.UpdateBgEsti(HObject presentImage, HObject upDateRegion, HTuple bgEstiHandle)

void HImage.UpdateBgEsti(HRegion upDateRegion, HBgEsti bgEstiHandle)

void HBgEsti.UpdateBgEsti(HImage presentImage, HRegion upDateRegion)

Beschreibung

update_bg_estiupdate_bg_estiUpdateBgEstiupdate_bg_estiUpdateBgEstiUpdateBgEsti überschreibt das im BgEsti-Datensatz gespeicherte Hintergrundbild in den durch UpDateRegionUpDateRegionUpDateRegionUpDateRegionUpDateRegionupDateRegion festgelegten Bereichen durch die Grauwerte aus PresentImagePresentImagePresentImagePresentImagePresentImagepresentImage. Dies kann zur „harten“ Adaption verwendet werden, d.h. Bildbereiche, in denen sich der Hintergrund stark verändert hat, können hiermit schnell adaptiert werden.

Achtung

Das übergebene Bild (PresentImagePresentImagePresentImagePresentImagePresentImagepresentImage) muss vom gleichen Typ und gleicher Größe sein, wie das im aktuellen Datensatz abgelegte Hintergrundbild (festgelegt mit create_bg_esticreate_bg_estiCreateBgEsticreate_bg_estiCreateBgEstiCreateBgEsti).

Parallelisierung

Parameter

PresentImagePresentImagePresentImagePresentImagePresentImagepresentImage (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte / real)

Aktuelles Bild.

UpDateRegionUpDateRegionUpDateRegionUpDateRegionUpDateRegionupDateRegion (input_object)  region objectHRegionHRegionHRegionHRegionXHobject

Region, die zu verändernde Bereiche beschreibt.

BgEstiHandleBgEstiHandleBgEstiHandleBgEstiHandleBgEstiHandlebgEstiHandle (input_control)  bg_estimation HBgEsti, HTupleHTupleHBgEsti, HTupleHBgEstiX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

ID des BgEsti-Datensatzes.

Beispiel (HDevelop)

* 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)
* use the Region and the information of a knowledge base
* to calculate the UpDateRegion
update_bg_esti(Image1,UpdateRegion,BgEstiHandle)
* then read the next image in sequence:
read_image(Image2,'Image_2')
* estimate the Background:
run_bg_esti(Image2,Region2,BgEstiHandle)
* etc.

Beispiel (C)

/* 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) ;
/* use the Region and the information of a knowledge base */
/* to calculate the UpDateRegion */
update_bg_esti(Image1,UpdateRegion,BgEstiHandle) ;
/* then read the next image in sequence: */
read_image(&Image2,"Image_2") ;
/* estimate the Background: */
run_bg_esti(Image2,&Region2,BgEstiHandle) ;
/* etc. */

Beispiel (HDevelop)

* 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)
* use the Region and the information of a knowledge base
* to calculate the UpDateRegion
update_bg_esti(Image1,UpdateRegion,BgEstiHandle)
* then read the next image in sequence:
read_image(Image2,'Image_2')
* estimate the Background:
run_bg_esti(Image2,Region2,BgEstiHandle)
* etc.

Beispiel (HDevelop)

* 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)
* use the Region and the information of a knowledge base
* to calculate the UpDateRegion
update_bg_esti(Image1,UpdateRegion,BgEstiHandle)
* then read the next image in sequence:
read_image(Image2,'Image_2')
* estimate the Background:
run_bg_esti(Image2,Region2,BgEstiHandle)
* etc.

Beispiel (HDevelop)

* 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)
* use the Region and the information of a knowledge base
* to calculate the UpDateRegion
update_bg_esti(Image1,UpdateRegion,BgEstiHandle)
* then read the next image in sequence:
read_image(Image2,'Image_2')
* estimate the Background:
run_bg_esti(Image2,Region2,BgEstiHandle)
* etc.

Beispiel (HDevelop)

* 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)
* use the Region and the information of a knowledge base
* to calculate the UpDateRegion
update_bg_esti(Image1,UpdateRegion,BgEstiHandle)
* then read the next image in sequence:
read_image(Image2,'Image_2')
* estimate the Background:
run_bg_esti(Image2,Region2,BgEstiHandle)
* etc.

Ergebnis

update_bg_estiupdate_bg_estiUpdateBgEstiupdate_bg_estiUpdateBgEstiUpdateBgEsti liefert den Wert 2 (H_MSG_TRUE), falls die Parameter korrekt sind.

Vorgänger

run_bg_estirun_bg_estiRunBgEstirun_bg_estiRunBgEstiRunBgEsti

Nachfolger

run_bg_estirun_bg_estiRunBgEstirun_bg_estiRunBgEstiRunBgEsti

Siehe auch

run_bg_estirun_bg_estiRunBgEstirun_bg_estiRunBgEstiRunBgEsti, give_bg_estigive_bg_estiGiveBgEstigive_bg_estiGiveBgEstiGiveBgEsti

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren