Skip to content

get_ncc_model_regionget_ncc_model_regionGetNccModelRegionGetNccModelRegionget_ncc_model_regionT_get_ncc_model_region🔗

Short description🔗

get_ncc_model_regionget_ncc_model_regionGetNccModelRegionGetNccModelRegionget_ncc_model_regionT_get_ncc_model_region — Return the region used to create an NCC model.

Signature🔗

get_ncc_model_region( out region ModelRegion, ncc_model ModelID )get_ncc_model_region( : ModelRegion : ModelID : )void GetNccModelRegion( HObject* ModelRegion, const HTuple& ModelID )static void HOperatorSet.GetNccModelRegion( out HObject modelRegion, HTuple modelID )def get_ncc_model_region( model_id: HHandle ) -> HObject

Herror T_get_ncc_model_region( Hobject* ModelRegion, const Htuple ModelID )

HRegion HNCCModel::GetNccModelRegion( ) const

HRegion HNCCModel.GetNccModelRegion( )

Description🔗

The operator get_ncc_model_regionGetNccModelRegion returns the region used to create the NCC model ModelIDmodelIDmodel_id in ModelRegionmodelRegionmodel_region. This region can be used, for example, to visualize the found instances of the model in an image. It should be noted that the position of ModelRegionmodelRegionmodel_region is normalized such that the reference point of the model (see set_ncc_model_originSetNccModelOrigin) lies at the pixel position \((0,0)\). Hence, the region simply needs to be translated to the found position in the image (and possibly rotated around this point). get_ncc_model_regionGetNccModelRegion ignores the value of the system parameter 'clip_region'"clip_region".

Execution information🔗

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🔗

ModelRegionmodelRegionmodel_region (output_object) region → objectobjectHObjectHRegionHObjectHobject *

Model region of the NCC model.

ModelIDmodelIDmodel_id (input_control) ncc_model → (handle)(handle)HTuple (HHandle)HNCCModel, HTuple (IntPtr)HHandleHtuple (handle)

Handle of the model.

Result🔗

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

Combinations with other operators🔗

Combinations

Possible predecessors

create_ncc_modelCreateNccModel

Module🔗

Matching