Click or drag to resize
Accord.NET (logo)

UnmanagedImageCollect16bppPixelValues Method

Collect pixel values from the specified list of coordinates.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public ushort[] Collect16bppPixelValues(
	List<IntPoint> points
)
Request Example View Source

Parameters

points
Type: System.Collections.GenericListIntPoint
List of coordinates to collect pixels' value from.

Return Value

Type: UInt16
Returns array of pixels' values from the specified coordinates.
Exceptions
ExceptionCondition
UnsupportedImageFormatExceptionUnsupported pixel format of the source image. Use Collect8bppPixelValues() method for images with 8 bpp channels.
Remarks

The method goes through the specified list of points and for each point retrievs corresponding pixel's value from the unmanaged image.

Note Note
For grayscale image the output array has the same length as number of points in the specified list of points. For color image the output array has triple length, containing pixels' values in RGB order.

Note Note
The method does not make any checks for valid coordinates and leaves this up to user. If specified coordinates are out of image's bounds, the result is not predictable (crash in most cases).

Note Note
This method is supposed for images with 16 bpp channels only (16 bpp grayscale image and 48/64 bpp color images).

See Also