Adds the specified image to this verification database.
Namespace: Cognex.VisionPro.InspectionAssembly: Cognex.VisionPro.Inspection (in Cognex.VisionPro.Inspection.dll) Version: 80.0.0.0 (80.0.0.0)
Syntax
Parameters
- image
- Type: Cognex.VisionPro ICogImage
The ICogImage object that will be added to tha database
- defaultSimpleResult
- Type: Cognex.VisionPro.Inspection CogVerificationSimpleResultConstants
The default simple result for the added image
Return Value
Type: StringA key of the image that were added to the database.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if not currently connected. |
| ArgumentNullException | Thrown if image is null. |
| ArgumentNullException | Thrown if the image cannot be added to the database. |
See Also