Adds all the images in the specified image directory to this verification database.
If any image in the image directory cannot be loaded, this method stops and throws an exception.
Namespace: Cognex.VisionPro.InspectionAssembly: Cognex.VisionPro.Inspection (in Cognex.VisionPro.Inspection.dll) Version: 79.0.0.0 (79.0.0.0)
Syntax
Parameters
- imageDirectory
- Type: System String
The full path to the directoy that holds the images to be added.
- referenceImages
- Type: System Boolean
Set this to true if the images should be referenced by their full path. Set this to false if the images should be embedded (copied) into the database.
- defaultSimpleResult
- Type: Cognex.VisionPro.Inspection CogVerificationSimpleResultConstants
The default simple result for all the add images
Return Value
Type: StringAn array of all the images that were added to the database.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if not currently connected. |
| ArgumentNullException | Thrown if imageDirectory is null. |
| ArgumentNullException | Thrown if imageDirectory is not found. |
See Also