Cog3DPartCorresponderUsing2DPoses UnifyCrsp2D3D Method Cognex VisionPro 9.5
Method to create unified crsp2D3Ds based on the original (non-unified) crsp2D3Ds and the part correspondences.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D (in Cognex.VisionPro3D.dll) Version: 69.0.0.0
Syntax

public List<Cog3DCrsp2D3D> UnifyCrsp2D3D(
	List<Cog3DCrsp2D3D> crsp2D3Ds,
	List<Dictionary<int, int>> partCorrespondences
)

Parameters

crsp2D3Ds
Type: System.Collections.Generic List Cog3DCrsp2D3D 
The List of the original crsp2D3Ds with associated camera index and original part instance index. May not be null.

Note that crsp2D3Ds[i].PartInstanceIndex should be the same index of the corresponding item in raw2DFromModel2Ds[crsp2D3Ds[i].CameraIndex] where raw2DFromModel2Ds is the input parameter used in Execute method. In other words, crsps corresponding to raw2DFromModel2Ds[i][j] must have CameraIndex of i, and PartInstanceIndex of j.

partCorrespondences
Type: System.Collections.Generic List Dictionary Int32, Int32  
The part correspondences computed using method Execute. May not be null.

Return Value

Type: List Cog3DCrsp2D3D 
A list of crsp2D3Ds where the PartInstanceIndex is modified so that each PartInstanceIndex refers to the same 3D part instance for all cameras.
Exceptions

ExceptionCondition
ArgumentNullException If any input argument is null, or any item inside each input argument is null.
ArgumentException
  • If partCorrespondences[i] has item whose Key is outside of the camera indices range specified by the input parameter raw2DFromPhys3Ds in constructor.
  • If crsp2D3Ds[i].CameraIndex is outside of the camera indices range specified by the input parameter raw2DFromPhys3Ds in constructor.
See Also