Skip to content

set_descriptor_model_originSetDescriptorModelOriginSetDescriptorModelOriginset_descriptor_model_originT_set_descriptor_model_origin🔗

Short description🔗

set_descriptor_model_originSetDescriptorModelOriginSetDescriptorModelOriginset_descriptor_model_originT_set_descriptor_model_origin — Sets the origin of a descriptor model.

Signature🔗

set_descriptor_model_origin( descriptor_model ModelID, real Row, real Column )void SetDescriptorModelOrigin( const HTuple& ModelID, const HTuple& Row, const HTuple& Column )static void HOperatorSet.SetDescriptorModelOrigin( HTuple modelID, HTuple row, HTuple column )def set_descriptor_model_origin( model_id: HHandle, row: Union[float, int], column: Union[float, int] ) -> None

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

void HDescriptorModel::SetDescriptorModelOrigin( const HTuple& Row, const HTuple& Column ) const

void HDescriptorModel::SetDescriptorModelOrigin( double Row, double Column ) const

void HDescriptorModel.SetDescriptorModelOrigin( HTuple row, HTuple column )

void HDescriptorModel.SetDescriptorModelOrigin( double row, double column )

Description🔗

The operator set_descriptor_model_originSetDescriptorModelOrigin sets the origin (reference point) of the descriptor model ModelIDmodelIDmodel_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 descriptor model with create_uncalib_descriptor_modelCreateUncalibDescriptorModel, or create_calib_descriptor_modelCreateCalibDescriptorModel. 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. The new setting affects the succeeding find_uncalib_descriptor_modelFindUncalibDescriptorModel and find_calib_descriptor_modelFindCalibDescriptorModel calls.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

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🔗

ModelIDmodelIDmodel_id (input_control, state is modified) descriptor_model → (handle)HTuple (HHandle)HDescriptorModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of a descriptor model.

Rowrowrow (input_control) real → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Union[float, int]Htuple (double / Hlong)

Translation of origin in row direction.

Default: 00

Columncolumncolumn (input_control) real → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)Union[float, int]Htuple (double / Hlong)

Translation of origin in column direction.

Default: 00

Combinations with other operators🔗

Combinations

Possible predecessors

create_uncalib_descriptor_modelCreateUncalibDescriptorModel, create_calib_descriptor_modelCreateCalibDescriptorModel, read_descriptor_modelReadDescriptorModel

See also

get_descriptor_model_originGetDescriptorModelOrigin, create_uncalib_descriptor_modelCreateUncalibDescriptorModel

Module🔗

Matching