BlobCounterBase.ExtractBlobsImage Method (Bitmap, Blob, Boolean)
Click or drag to resize
Accord.NET (logo)

BlobCounterBaseExtractBlobsImage Method (Bitmap, Blob, Boolean)

Extract blob's image.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
public void ExtractBlobsImage(
	Bitmap image,
	Blob blob,
	bool extractInOriginalSize
Request Example View Source


Type: System.DrawingBitmap
Source image to extract blob's image from.
Type: Accord.ImagingBlob
Blob which is required to be extracted.
Type: SystemBoolean
Specifies size of blobs' image to extract. If set to each blobs' image will have the same size as the specified image. If set to each blobs' image will have the size of its blob.
UnsupportedImageFormatExceptionUnsupported pixel format of the provided image.
ApplicationExceptionNo image was processed before, so blob can not be extracted.

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.

See Also