get_shape_model_originT_get_shape_model_originGetShapeModelOriginGetShapeModelOriginget_shape_model_origin (算子名称)
名称
get_shape_model_originT_get_shape_model_originGetShapeModelOriginGetShapeModelOriginget_shape_model_origin — Return the origin (reference point) of a shape model.
参数签名
Herror T_get_shape_model_origin(const Htuple ModelID, Htuple* Row, Htuple* Column)
def get_shape_model_origin(model_id: HHandle) -> Tuple[float, float]
描述
该算子 get_shape_model_originget_shape_model_originGetShapeModelOriginGetShapeModelOriginGetShapeModelOriginget_shape_model_origin returns the origin
(reference point) of the shape model ModelIDModelIDModelIDModelIDmodelIDmodel_id. The origin
is specified relative to the center of gravity of the domain
(region) of the image that was used to create the shape model with
create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModelcreate_shape_model, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModelcreate_scaled_shape_model, or
create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModelcreate_aniso_shape_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 (input_control) shape_model → HShapeModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the model.
RowRowRowRowrowrow (output_control) point.y → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Row coordinate of the origin of the shape model.
ColumnColumnColumnColumncolumncolumn (output_control) point.x → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Column coordinate of the origin of the shape model.
结果
If the handle of the model is valid, 该算子
get_shape_model_originget_shape_model_originGetShapeModelOriginGetShapeModelOriginGetShapeModelOriginget_shape_model_origin 返回值 2 (
H_MSG_TRUE)
. If necessary
an exception is raised.
可能的前置算子
create_generic_shape_modelcreate_generic_shape_modelCreateGenericShapeModelCreateGenericShapeModelCreateGenericShapeModelcreate_generic_shape_model,
read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModelread_shape_model,
set_shape_model_originset_shape_model_originSetShapeModelOriginSetShapeModelOriginSetShapeModelOriginset_shape_model_origin
可能的后置算子
find_generic_shape_modelfind_generic_shape_modelFindGenericShapeModelFindGenericShapeModelFindGenericShapeModelfind_generic_shape_model
参考其它
area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center
模块
Matching