set_ncc_model_originT_set_ncc_model_originSetNccModelOriginSetNccModelOrigin (Operator)


set_ncc_model_originT_set_ncc_model_originSetNccModelOriginSetNccModelOrigin — Set the origin (reference point) of an NCC model.


set_ncc_model_origin( : : ModelID, Row, Column : )

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

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

void HNCCModel::SetNccModelOrigin(double Row, double Column) const

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

void HNCCModel.SetNccModelOrigin(double row, double column)


The operator set_ncc_model_originset_ncc_model_originSetNccModelOriginSetNccModelOriginSetNccModelOrigin sets the origin (reference point) of the NCC model ModelIDModelIDModelIDModelIDmodelID 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 NCC model with create_ncc_modelcreate_ncc_modelCreateNccModelCreateNccModelCreateNccModel. 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

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.


ModelIDModelIDModelIDModelIDmodelID (input_control, state is modified)  ncc_model HNCCModel, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the model.

RowRowRowRowrow (input_control)  point.y HTupleHTupleHtuple (real) (double) (double) (double)

Row coordinate of the origin of the NCC model.

ColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHtuple (real) (double) (double) (double)

Column coordinate of the origin of the NCC model.


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

Possible Predecessors

create_ncc_modelcreate_ncc_modelCreateNccModelCreateNccModelCreateNccModel, read_ncc_modelread_ncc_modelReadNccModelReadNccModelReadNccModel

Possible Successors

find_ncc_modelfind_ncc_modelFindNccModelFindNccModelFindNccModel, get_ncc_model_originget_ncc_model_originGetNccModelOriginGetNccModelOriginGetNccModelOrigin, find_ncc_modelsfind_ncc_modelsFindNccModelsFindNccModelsFindNccModels

See also