close_bg_estiT_close_bg_estiCloseBgEstiCloseBgEsticlose_bg_esti (算子)

名称

close_bg_estiT_close_bg_estiCloseBgEstiCloseBgEsticlose_bg_esti — 删除背景估计数据集。

签名

close_bg_esti( : : BgEstiHandle : )

Herror T_close_bg_esti(const Htuple BgEstiHandle)

void CloseBgEsti(const HTuple& BgEstiHandle)

void HBgEsti::CloseBgEsti() const

static void HOperatorSet.CloseBgEsti(HTuple bgEstiHandle)

void HBgEsti.CloseBgEsti()

def close_bg_esti(bg_esti_handle: HHandle) -> None

描述

close_bg_esticlose_bg_estiCloseBgEstiCloseBgEstiCloseBgEsticlose_bg_esti deletes the background estimation data set and releases all used memory.

执行信息

此算子修改后续输入参数的状态:

在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。

参数

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/xing001')
* Estimate the background:
run_bg_esti(Image0,ForegroundRegion1,BgEstiHandle)
* Display the foreground region:
dev_display (ForegroundRegion1)
* Read the next image in sequence:
read_image(Image1, 'xing/xing002')
* Estimate the background:
run_bg_esti(Image1,ForegroundRegion2,BgEstiHandle)
* Display the foreground region:
dev_display (ForegroundRegion2)
* etc.
* - End of background estimation -
* Close the dataset:
close_bg_esti(BgEstiHandle)

结果

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

可能的前趋

run_bg_estirun_bg_estiRunBgEstiRunBgEstiRunBgEstirun_bg_esti

另见

create_bg_esticreate_bg_estiCreateBgEstiCreateBgEstiCreateBgEsticreate_bg_esti

模块

基础