ClassesClasses | | Operators

get_shape_model_originget_shape_model_originGetShapeModelOriginGetShapeModelOrigin (Operator)

Name

get_shape_model_originget_shape_model_originGetShapeModelOriginGetShapeModelOrigin — Return the origin (reference point) of a shape model.

Signature

get_shape_model_origin( : : ModelID : Row, Column)

Herror get_shape_model_origin(const Hlong ModelID, double* Row, double* Column)

Herror T_get_shape_model_origin(const Htuple ModelID, Htuple* Row, Htuple* Column)

void GetShapeModelOrigin(const HTuple& ModelID, HTuple* Row, HTuple* Column)

void HShapeModel::GetShapeModelOrigin(double* Row, double* Column) const

static void HOperatorSet.GetShapeModelOrigin(HTuple modelID, out HTuple row, out HTuple column)

void HShapeModel.GetShapeModelOrigin(out double row, out double column)

Description

The operator get_shape_model_originget_shape_model_originGetShapeModelOriginGetShapeModelOriginGetShapeModelOrigin returns the origin (reference point) of the shape model ModelIDModelIDModelIDModelIDmodelID. 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_modelCreateShapeModelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModel, or create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModel. 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.

Execution Information

Parameters

ModelIDModelIDModelIDModelIDmodelID (input_control)  shape_model HShapeModel, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the model.

RowRowRowRowrow (output_control)  point.y HTupleHTupleHtuple (real) (double) (double) (double)

Row coordinate of the origin of the shape model.

ColumnColumnColumnColumncolumn (output_control)  point.x HTupleHTupleHtuple (real) (double) (double) (double)

Column coordinate of the origin of the shape model.

Result

If the handle of the model is valid, the operator get_shape_model_originget_shape_model_originGetShapeModelOriginGetShapeModelOriginGetShapeModelOrigin returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Predecessors

create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModel, create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModel, read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModel, set_shape_model_originset_shape_model_originSetShapeModelOriginSetShapeModelOriginSetShapeModelOrigin

Possible Successors

find_shape_modelfind_shape_modelFindShapeModelFindShapeModelFindShapeModel, find_scaled_shape_modelfind_scaled_shape_modelFindScaledShapeModelFindScaledShapeModelFindScaledShapeModel, find_aniso_shape_modelfind_aniso_shape_modelFindAnisoShapeModelFindAnisoShapeModelFindAnisoShapeModel, find_shape_modelsfind_shape_modelsFindShapeModelsFindShapeModelsFindShapeModels, find_scaled_shape_modelsfind_scaled_shape_modelsFindScaledShapeModelsFindScaledShapeModelsFindScaledShapeModels, find_aniso_shape_modelsfind_aniso_shape_modelsFindAnisoShapeModelsFindAnisoShapeModelsFindAnisoShapeModels

See also

area_centerarea_centerAreaCenterAreaCenterAreaCenter

Module

Matching


ClassesClasses | | Operators