Click or drag to resize
Accord.NET (logo)

BlobCounterBaseExtractBlobsImage Method (UnmanagedImage, Blob, Boolean)

Extract blob's image.

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

Parameters

image
Type: Accord.ImagingUnmanagedImage
Source unmanaged image to extract blob's image from.
blob
Type: Accord.ImagingBlob
Blob which is required to be extracted.
extractInOriginalSize
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.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionUnsupported pixel format of the provided image.
ApplicationExceptionNo image was processed before, so blob can not be extracted.
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.

See Also