Cog3DRangeImageCrossSectionProfile GetProfileDataInProfileSelectedSpaceName Method Cognex VisionPro 9.5
Returns the profile data in the specified space. Each point in the profile is mapped from pels to the specified space, packaged as a Cog3DVect2 object, and added to the Cog3DVect2Collection. Returns null if the ProfileRoot is null, or if the profile has zero points.

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

public Cog3DVect2Collection GetProfileDataInProfileSelectedSpaceName(
	string ssn
)

Parameters

ssn
Type: System String
A user specified profile selected space name. If the value is null or ".", then the ProfileSelectedSpaceName is used.

Return Value

Type: Cog3DVect2Collection
Exceptions

ExceptionCondition
CogSpaceTreeNameNotInTreeException if the ssn is not in the tree.
Remarks

The user should rely on the weights array (returned by GetWeights()) to determine what action to take with regards to non-visible pixels. The weights array is of the same size as the profile data array, and should be used to determine which points in the profile data are "missing". Any point whose weight is zero is considered "missing", and should not be examined: its height (y-value) is meaningless.
See Also