get_deformable_model_originT_get_deformable_model_originGetDeformableModelOriginGetDeformableModelOriginget_deformable_model_origin (Operator)
Name
get_deformable_model_originT_get_deformable_model_originGetDeformableModelOriginGetDeformableModelOriginget_deformable_model_origin — Return the origin (reference point) of a deformable model.
Signature
Herror T_get_deformable_model_origin(const Htuple ModelID, Htuple* Row, Htuple* Column)
 
def get_deformable_model_origin(model_id: HHandle) -> Tuple[float, float]
 
Description
The operator get_deformable_model_originget_deformable_model_originGetDeformableModelOriginGetDeformableModelOriginget_deformable_model_origin returns the origin
(reference point) of the deformable model ModelIDModelIDModelIDmodelIDmodel_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_modelcreate_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModelCreatePlanarUncalibDeformableModelcreate_planar_uncalib_deformable_model or
create_planar_calib_deformable_modelcreate_planar_calib_deformable_modelCreatePlanarCalibDeformableModelCreatePlanarCalibDeformableModelcreate_planar_calib_deformable_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.
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
  
ModelIDModelIDModelIDmodelIDmodel_id (input_control)  deformable_model → HDeformableModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
 
Handle of the model.
 
  
RowRowRowrowrow (output_control)  point.y → HTuplefloatHTupleHtuple (real) (double) (double) (double)
 
Row coordinate of the origin of the deformable model.
 
  
ColumnColumnColumncolumncolumn (output_control)  point.x → HTuplefloatHTupleHtuple (real) (double) (double) (double)
 
Column coordinate of the origin of the deformable model.
 
Result
If the handle of the model is valid, the operator
get_deformable_model_originget_deformable_model_originGetDeformableModelOriginGetDeformableModelOriginget_deformable_model_origin returns the value 2 (
      H_MSG_TRUE)
    .  If necessary
an exception is raised.
Possible Predecessors
create_planar_uncalib_deformable_modelcreate_planar_uncalib_deformable_modelCreatePlanarUncalibDeformableModelCreatePlanarUncalibDeformableModelcreate_planar_uncalib_deformable_model, 
read_deformable_modelread_deformable_modelReadDeformableModelReadDeformableModelread_deformable_model, 
set_deformable_model_originset_deformable_model_originSetDeformableModelOriginSetDeformableModelOriginset_deformable_model_origin
Possible Successors
find_planar_uncalib_deformable_modelfind_planar_uncalib_deformable_modelFindPlanarUncalibDeformableModelFindPlanarUncalibDeformableModelfind_planar_uncalib_deformable_model
See also
area_centerarea_centerAreaCenterAreaCenterarea_center
Module
Matching