give_bg_estiT_give_bg_estiGiveBgEstiGiveBgEstigive_bg_esti (算子)

名称

give_bg_estiT_give_bg_estiGiveBgEstiGiveBgEstigive_bg_esti — 返回估计的背景图像。

签名

give_bg_esti( : BackgroundImage : 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()

def give_bg_esti(bg_esti_handle: HHandle) -> HObject

描述

give_bg_estigive_bg_estiGiveBgEstiGiveBgEstiGiveBgEstigive_bg_esti 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_estiCreateBgEstiCreateBgEstiCreateBgEsticreate_bg_esti

执行信息

参数

BackgroundImageBackgroundImageBackgroundImageBackgroundImagebackgroundImagebackground_image (输出对象)  image objectHImageHObjectHImageHobject * (byte / real)

Estimated background image of the current data set.

BgEstiHandleBgEstiHandleBgEstiHandleBgEstiHandlebgEstiHandlebg_esti_handle (输入控制)  bg_estimation HBgEsti, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

ID of the BgEsti data set.

示例(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)

结果

give_bg_estigive_bg_estiGiveBgEstiGiveBgEstiGiveBgEstigive_bg_esti 在所有参数正确时返回 2 ( H_MSG_TRUE )。

可能的前趋

run_bg_estirun_bg_estiRunBgEstiRunBgEstiRunBgEstirun_bg_esti

可能的后继

run_bg_estirun_bg_estiRunBgEstiRunBgEstiRunBgEstirun_bg_esti, create_bg_esticreate_bg_estiCreateBgEstiCreateBgEstiCreateBgEsticreate_bg_esti, update_bg_estiupdate_bg_estiUpdateBgEstiUpdateBgEstiUpdateBgEstiupdate_bg_esti

另见

run_bg_estirun_bg_estiRunBgEstiRunBgEstiRunBgEstirun_bg_esti, update_bg_estiupdate_bg_estiUpdateBgEstiUpdateBgEstiUpdateBgEstiupdate_bg_esti, create_bg_esticreate_bg_estiCreateBgEstiCreateBgEstiCreateBgEsticreate_bg_esti

模块

基础