Skip to content

get_deformable_model_originGetDeformableModelOriginGetDeformableModelOriginget_deformable_model_originT_get_deformable_model_origin🔗

Short description🔗

get_deformable_model_originGetDeformableModelOriginGetDeformableModelOriginget_deformable_model_originT_get_deformable_model_origin — Return the origin (reference point) of a deformable model.

Signature🔗

get_deformable_model_origin( deformable_model ModelID, out point.y Row, out point.x Column )void GetDeformableModelOrigin( const HTuple& ModelID, HTuple* Row, HTuple* Column )static void HOperatorSet.GetDeformableModelOrigin( HTuple modelID, out HTuple row, out HTuple column )def get_deformable_model_origin( model_id: HHandle ) -> Tuple[float, float]

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

void HDeformableModel::GetDeformableModelOrigin( double* Row, double* Column ) const

void HDeformableModel.GetDeformableModelOrigin( out double row, out double column )

Description🔗

The operator get_deformable_model_originGetDeformableModelOrigin returns the origin (reference point) of the deformable model ModelIDmodelIDmodel_id. The origin is specified relative to the center of gravity of the domain (region) of the image that was used to create the deformable model with create_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModel or create_planar_calib_deformable_modelCreatePlanarCalibDeformableModel. 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.

Parameters🔗

ModelIDmodelIDmodel_id (input_control) deformable_model → (handle)HTuple (HHandle)HDeformableModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the model.

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

Row coordinate of the origin of the deformable model.

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

Column coordinate of the origin of the deformable model.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

create_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModel, read_deformable_modelReadDeformableModel, set_deformable_model_originSetDeformableModelOrigin

Possible successors

find_planar_uncalib_deformable_modelFindPlanarUncalibDeformableModel

See also

area_centerAreaCenter

Module🔗

Matching