The CogImageStitch class offers functionality for image seamless stitching and image override stitching. This class has following two different ways to do image stitching. (1)To do 'blended' stitching(Seamless Stitching) as follows. (a)Allocate an internal data structure known as the BlendingBuffer. (b)Add as many source images as desired to the buffer. (c)Fill a pre-allocated destination image with the final result. (2)To do 'overwrite' stitching(Override Stitching) as follows. (a)Simply call one of the static 'OverwriteImage' functions.
Inheritance Hierarchy
Cognex.VisionPro CogImageStitch
Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax
The CogImageStitch type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| CogImageStitch | ||
| CogImageStitch(CogImageStitch) |
Methods
| Name | Description | |
|---|---|---|
| AllocateBlendingBuffer | Allocate the internal data structures that are needed for stitching images in Blending mode. | |
| BlendImageIntoBuffer(CogImage8Grey, CogImage8Grey) | This method adds inputImage to the BlendingBuffer with inputImageWeights. inputImage pel�fs contribution to the result image is weighted with the contribution of inputImageWeights pels that corresponded to the same pel in the result image. inputImageWeights can be null. In this case, all input pels are weighted fully and equally. | |
| BlendImageIntoBuffer(CogImage8Grey, CogImage8Grey, CogImage8Grey, Int32, Int32) | This method allows user to do both masking and weighting. inputImageMask must be non-null and allocated, but does not need to be the same size as the input image. VisionPro assumes that image pels not covered by the mask are care pixels (i.e.they are copied into the destination) inputImageMaskOffsetX/Y can be any integer value. These values specify how the mask is aligned on the image. (Same as other VPro tools with masking.). | |
| DeallocateBlendingBuffer | Free the internal data structures. | |
| Dispose | ||
| Dispose(Boolean) | ||
| Equals | (Inherited from Object.) | |
| FillDefaultWeightImage | This method allows users to fill weightImage with weighting values.The resulting weightImage can be used for blending images togetherweightImage is filled in with the distance in pels from the nearest image boundary, to a maximum of 255. The result is concentric squares of pel values, increasing in weight toward the middle | |
| FillDestinationImageFromBuffer(CogImage8Grey) | This method extracts the stitched image from the BlendingBuffer. Any destination pixels that were never written to are untouched. | |
| FillDestinationImageFromBuffer(CogImage8Grey, Int32) | This method extracts the stitched image from the BlendingBuffer. This will write the unfilledPelValue into any destination pixels that were never written. | |
| FillDestinationImageMaskFromBuffer | This method extracts the result mask indicating which pels in the stitched image are meaningful. This can be useful to tell user which pels were actually written during the stitch operation. | |
| Finalize | (Overrides Object Finalize .) | |
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| OverwriteImage(CogImage8Grey, CogImage8Grey, CogImage8Grey) | This method allows users to stitch images in overwrite mode. This will fill a destinationImageMask. The BlendingBuffer is not used. destinationImageMask must be either(1)null (i.e. no mask is desired),or (2) non-null, allocated, and the same size as the destinationImage. | |
| OverwriteImage(CogImage8Grey, CogImage8Grey, Int32, Int32, CogImage8Grey, CogImage8Grey) | This method allows users to stitch images in overwrite mode. This allow masking and will fill a destinationImageMask. The BlendingBuffer is not used. destinationImageMask must be either(1)null (i.e. no mask is desired),or (2) non-null, allocated, and the same size as the destinationImage. inputImageMaskOffsetX/Y can be any integer value. These values specify how the mask is aligned on the image. (Same as other VPro tools with masking.) | |
| ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| BlendingBufferAllocated | This read-only property is true when the BlendingBuffer is allocated. | |
| NumberOfBlendedImages | This read-only property tells how many images the BlendingBuffer contains. |
See Also