Skip to content

set_shape_model_originSetShapeModelOriginSetShapeModelOriginset_shape_model_originT_set_shape_model_origin🔗

Short description🔗

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

Signature🔗

set_shape_model_origin( shape_model ModelID, point.y Row, point.x Column )void SetShapeModelOrigin( const HTuple& ModelID, const HTuple& Row, const HTuple& Column )static void HOperatorSet.SetShapeModelOrigin( HTuple modelID, HTuple row, HTuple column )def set_shape_model_origin( model_id: HHandle, row: float, column: float ) -> None

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

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

void HShapeModel.SetShapeModelOrigin( double row, double column )

Description🔗

The operator set_shape_model_originSetShapeModelOrigin sets the origin (reference point) of the shape model ModelIDmodelIDmodel_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 shape model with create_shape_modelCreateShapeModel, create_scaled_shape_modelCreateScaledShapeModel, or create_aniso_shape_modelCreateAnisoShapeModel. 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🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

This operator modifies the state of the following input parameter:

During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.

Parameters🔗

ModelIDmodelIDmodel_id (input_control, state is modified) shape_model → (handle)HTuple (HHandle)HShapeModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the model.

Rowrowrow (input_control) point.y → (real)HTuple (double)HTuple (double)floatHtuple (double)

Row coordinate of the origin of the shape model.

Columncolumncolumn (input_control) point.x → (real)HTuple (double)HTuple (double)floatHtuple (double)

Column coordinate of the origin of the shape model.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

create_generic_shape_modelCreateGenericShapeModel

Possible successors

train_generic_shape_modelTrainGenericShapeModel

See also

area_centerAreaCenter

Module🔗

Matching