set_shape_model_originT_set_shape_model_originSetShapeModelOriginSetShapeModelOriginset_shape_model_origin (Operator)
Name
set_shape_model_originT_set_shape_model_originSetShapeModelOriginSetShapeModelOriginset_shape_model_origin
— Set the origin (reference point) of a shape model.
Signature
Herror T_set_shape_model_origin(const Htuple ModelID, const Htuple Row, const Htuple Column)
Description
The operator set_shape_model_originset_shape_model_originSetShapeModelOriginSetShapeModelOriginSetShapeModelOriginset_shape_model_origin
sets the origin
(reference point) of the shape model ModelIDModelIDModelIDModelIDmodelIDmodel_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_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModelcreate_shape_model
,
create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModelcreate_scaled_shape_model
, or
create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModelcreate_aniso_shape_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.
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
ModelIDModelIDModelIDModelIDmodelIDmodel_id
(input_control, state is modified) shape_model →
HShapeModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the model.
RowRowRowRowrowrow
(input_control) point.y →
HTuplefloatHTupleHtuple (real) (double) (double) (double)
Row coordinate of the origin of the shape model.
ColumnColumnColumnColumncolumncolumn
(input_control) point.x →
HTuplefloatHTupleHtuple (real) (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_originSetShapeModelOriginSetShapeModelOriginSetShapeModelOriginset_shape_model_origin
returns the value 2 (H_MSG_TRUE). If necessary
an exception is raised.
Possible Predecessors
create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModelcreate_shape_model
,
create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModelcreate_scaled_shape_model
,
create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModelcreate_aniso_shape_model
,
read_shape_modelread_shape_modelReadShapeModelReadShapeModelReadShapeModelread_shape_model
Possible Successors
find_shape_modelfind_shape_modelFindShapeModelFindShapeModelFindShapeModelfind_shape_model
,
find_scaled_shape_modelfind_scaled_shape_modelFindScaledShapeModelFindScaledShapeModelFindScaledShapeModelfind_scaled_shape_model
,
find_aniso_shape_modelfind_aniso_shape_modelFindAnisoShapeModelFindAnisoShapeModelFindAnisoShapeModelfind_aniso_shape_model
,
find_shape_modelsfind_shape_modelsFindShapeModelsFindShapeModelsFindShapeModelsfind_shape_models
,
find_scaled_shape_modelsfind_scaled_shape_modelsFindScaledShapeModelsFindScaledShapeModelsFindScaledShapeModelsfind_scaled_shape_models
,
find_aniso_shape_modelsfind_aniso_shape_modelsFindAnisoShapeModelsFindAnisoShapeModelsFindAnisoShapeModelsfind_aniso_shape_models
,
get_shape_model_originget_shape_model_originGetShapeModelOriginGetShapeModelOriginGetShapeModelOriginget_shape_model_origin
See also
area_centerarea_centerAreaCenterAreaCenterAreaCenterarea_center
Module
Matching