ClassesClassesClassesClasses | | | | Operators

set_shape_model_originset_shape_model_originSetShapeModelOriginset_shape_model_originSetShapeModelOriginSetShapeModelOrigin (Operator)

Name

set_shape_model_originset_shape_model_originSetShapeModelOriginset_shape_model_originSetShapeModelOriginSetShapeModelOrigin — Set the origin (reference point) of a shape model.

Signature

set_shape_model_origin( : : ModelID, Row, Column : )

Herror set_shape_model_origin(const Hlong ModelID, double Row, double Column)

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

Herror set_shape_model_origin(const HTuple& ModelID, const HTuple& Row, const HTuple& Column)

void HShapeModel::SetShapeModelOrigin(const HTuple& Row, const HTuple& Column) const

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

void HShapeModel::SetShapeModelOrigin(double Row, double Column) const

void HOperatorSetX.SetShapeModelOrigin(
[in] VARIANT ModelID, [in] VARIANT Row, [in] VARIANT Column)

void HShapeModelX.SetShapeModelOrigin(
[in] double Row, [in] double Column)

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

void HShapeModel.SetShapeModelOrigin(double row, double column)

Description

The operator set_shape_model_originset_shape_model_originSetShapeModelOriginset_shape_model_originSetShapeModelOriginSetShapeModelOrigin sets the origin (reference point) of the shape model ModelIDModelIDModelIDModelIDModelIDmodelID 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 shape model with create_shape_modelcreate_shape_modelCreateShapeModelcreate_shape_modelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModel, or create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModel. 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.

Parallelization

This operator modifies the state of the following input parameter:

The value of this parameter may not be shared across multiple threads without external synchronization.

Parameters

ModelIDModelIDModelIDModelIDModelIDmodelID (input_control, state is modified)  shape_model HShapeModel, HTupleHTupleHShapeModel, HTupleHShapeModelX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the model.

RowRowRowRowRowrow (input_control)  point.y HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Row coordinate of the origin of the shape model.

ColumnColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHTupleVARIANTHtuple (real) (double) (double) (double) (double) (double)

Column coordinate of the origin of the shape model.

Result

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

Possible Predecessors

create_shape_modelcreate_shape_modelCreateShapeModelcreate_shape_modelCreateShapeModelCreateShapeModel, create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModel, create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModel, read_shape_modelread_shape_modelReadShapeModelread_shape_modelReadShapeModelReadShapeModel

Possible Successors

find_shape_modelfind_shape_modelFindShapeModelfind_shape_modelFindShapeModelFindShapeModel, find_scaled_shape_modelfind_scaled_shape_modelFindScaledShapeModelfind_scaled_shape_modelFindScaledShapeModelFindScaledShapeModel, find_aniso_shape_modelfind_aniso_shape_modelFindAnisoShapeModelfind_aniso_shape_modelFindAnisoShapeModelFindAnisoShapeModel, find_shape_modelsfind_shape_modelsFindShapeModelsfind_shape_modelsFindShapeModelsFindShapeModels, find_scaled_shape_modelsfind_scaled_shape_modelsFindScaledShapeModelsfind_scaled_shape_modelsFindScaledShapeModelsFindScaledShapeModels, find_aniso_shape_modelsfind_aniso_shape_modelsFindAnisoShapeModelsfind_aniso_shape_modelsFindAnisoShapeModelsFindAnisoShapeModels, get_shape_model_originget_shape_model_originGetShapeModelOriginget_shape_model_originGetShapeModelOriginGetShapeModelOrigin

See also

area_centerarea_centerAreaCenterarea_centerAreaCenterAreaCenter

Module

Matching


ClassesClassesClassesClasses | | | | Operators