set_ncc_model_originT_set_ncc_model_originSetNccModelOriginSetNccModelOriginset_ncc_model_origin (算子)

名称

set_ncc_model_originT_set_ncc_model_originSetNccModelOriginSetNccModelOriginset_ncc_model_origin — 设置 NCC 模型的原点(参考点)。

签名

set_ncc_model_origin( : : ModelID, Row, Column : )

Herror T_set_ncc_model_origin(const Htuple ModelID, const Htuple Row, const Htuple Column)

void SetNccModelOrigin(const HTuple& ModelID, const HTuple& Row, const HTuple& Column)

void HNCCModel::SetNccModelOrigin(double Row, double Column) const

static void HOperatorSet.SetNccModelOrigin(HTuple modelID, HTuple row, HTuple column)

void HNCCModel.SetNccModelOrigin(double row, double column)

def set_ncc_model_origin(model_id: HHandle, row: float, column: float) -> None

描述

算子 set_ncc_model_originset_ncc_model_originSetNccModelOriginSetNccModelOriginSetNccModelOriginset_ncc_model_origin sets the origin (reference point) of the NCC model ModelIDModelIDModelIDModelIDmodelIDmodel_id to a new value. The origin is specified relative to the center of gravity of the domain (region) of the image that was used to create the NCC model with create_ncc_modelcreate_ncc_modelCreateNccModelCreateNccModelCreateNccModelcreate_ncc_model。Hence, an origin of (0,0) means that the center of gravity of the domain of the model image is used as the origin. An origin of (-20,-40) means that the origin lies to the upper left of the center of gravity.

执行信息

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

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

参数

ModelIDModelIDModelIDModelIDmodelIDmodel_id (输入控制,状态被修改)  ncc_model HNCCModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the model.

RowRowRowRowrowrow (输入控制)  point.y HTuplefloatHTupleHtuple (real) (double) (double) (double)

Row coordinate of the origin of the NCC model.

ColumnColumnColumnColumncolumncolumn (输入控制)  point.x HTuplefloatHTupleHtuple (real) (double) (double) (double)

Column coordinate of the origin of the NCC model.

结果

如果模型的句柄有效,算子 set_ncc_model_originset_ncc_model_originSetNccModelOriginSetNccModelOriginSetNccModelOriginset_ncc_model_origin 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。

可能的前趋

create_ncc_modelcreate_ncc_modelCreateNccModelCreateNccModelCreateNccModelcreate_ncc_model, read_ncc_modelread_ncc_modelReadNccModelReadNccModelReadNccModelread_ncc_model

可能的后继

find_ncc_modelfind_ncc_modelFindNccModelFindNccModelFindNccModelfind_ncc_model, get_ncc_model_originget_ncc_model_originGetNccModelOriginGetNccModelOriginGetNccModelOriginget_ncc_model_origin, find_ncc_modelsfind_ncc_modelsFindNccModelsFindNccModelsFindNccModelsfind_ncc_models

另见

area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center

模块

匹配