Click or drag to resize
Accord.NET (logo)

BlobCounterBaseGetObjects Method (UnmanagedImage, Boolean)

Get blobs.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
public Blob[] GetObjects(
	UnmanagedImage image,
	bool extractInOriginalSize
Request Example View Source


Type: Accord.ImagingUnmanagedImage
Source unmanaged image to extract objects from.
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.

Return Value

Type: Blob
Returns array of blobs.
UnsupportedImageFormatExceptionUnsupported pixel format of the provided image.
ApplicationExceptionNo image was processed before, so objects can not be collected.

The method returns array of blobs. 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