Extract blob's image.
Namespace:
AForge.ImagingAssembly: AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
Parameters
- image
- Type: System.Drawing..::.Bitmap
Source image to extract blob's image from.
- blob
- Type: AForge.Imaging..::.Blob
Blob which is required to be extracted.
- extractInOriginalSize
- Type: System..::.Boolean
Specifies size of blobs' image to extract. If set to trueTruetruetrue (True in Visual Basic) each blobs' image will have the same size as the specified image. If set to falseFalsefalsefalse (False in Visual Basic) each blobs' image will have the size of its blob.
Remarks
The method is used to extract image of partially initialized blob, which was provided by GetObjectsInformation()()() method. Before calling the method, the ProcessImage(Bitmap), ProcessImage(BitmapData) or ProcessImage(UnmanagedImage) method should be called, which will build objects map.
The method supports 24/32 bpp color and 8 bpp indexed grayscale images.
Exceptions
Exception | Condition |
---|---|
AForge.Imaging..::.UnsupportedImageFormatException | Unsupported pixel format of the provided image. |
System..::.ApplicationException | No image was processed before, so blob can not be extracted. |