ClassesClasses | | Operators

get_ncc_model_originget_ncc_model_originGetNccModelOriginGetNccModelOrigin (Operator)

Name

get_ncc_model_originget_ncc_model_originGetNccModelOriginGetNccModelOrigin — Return the origin (reference point) of an NCC model.

Signature

get_ncc_model_origin( : : ModelID : Row, Column)

Herror get_ncc_model_origin(const Hlong ModelID, double* Row, double* Column)

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

void GetNccModelOrigin(const HTuple& ModelID, HTuple* Row, HTuple* Column)

void HNCCModel::GetNccModelOrigin(double* Row, double* Column) const

static void HOperatorSet.GetNccModelOrigin(HTuple modelID, out HTuple row, out HTuple column)

void HNCCModel.GetNccModelOrigin(out double row, out double column)

Description

The operator get_ncc_model_originget_ncc_model_originGetNccModelOriginGetNccModelOriginGetNccModelOrigin returns the origin (reference point) of the NCC model ModelIDModelIDModelIDModelIDmodelID. 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

Parameters

ModelIDModelIDModelIDModelIDmodelID (input_control)  ncc_model HNCCModel, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the model.

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

Row coordinate of the origin of the NCC model.

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

Column coordinate of the origin of the NCC model.

Result

If the handle of the model is valid, the operator get_ncc_model_originget_ncc_model_originGetNccModelOriginGetNccModelOriginGetNccModelOrigin 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, set_ncc_model_originset_ncc_model_originSetNccModelOriginSetNccModelOriginSetNccModelOrigin

Possible Successors

find_ncc_modelfind_ncc_modelFindNccModelFindNccModelFindNccModel

See also

area_centerarea_centerAreaCenterAreaCenterAreaCenter

Module

Matching


ClassesClasses | | Operators