Gets or sets the region. The region bounding box specifies the portion of each image to be processed.
The output image size is based on the region bounding box size.
Namespace: Cognex.VisionPro.SurfaceFXAssembly: Cognex.VisionPro.SurfaceFX (in Cognex.VisionPro.SurfaceFX.dll) Version: 65.1.0.0
Syntax
Property Value
Type: ICogRegionThe search region. Default value is null.
Events
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when this property changes. The following state flags may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ObjectDisposedException | If the object has been disposed. |
Remarks
To ensure that the region's bounding box is the same size on all images (and is not affected by tiny floating-point round off errors) we do the following:
- Compute the whole - pixel size of the bounding box on all input images.
- Determine the smallest width of the bounding boxes, and the smallest height.
- Create a whole - pixel rectangle using the smallest width and height.
- Transfer the integer dimensions of this rectangle to the other three input images, using the whole - pixel alignment computed during the alignment phase, as described above.
If the user knows that there is no motion in their application, they need not provide a region at all. SurfaceFX will simply assume that the desired region is the full size of the first input image and has a SelectedSpaceName of ".". This will give the desired result for our most common users : users that supply input images with the same size and the same SelectedSpaceName. It will also(correctly) result in a runtime error if there is any fixtured motion between the images.
See Also