|
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
)
Public Function Collect16bppPixelValues (
points As List(Of IntPoint)
) As UShort()
Request Example
View SourceParameters
- points
- Type: System.Collections.GenericListIntPoint
List of coordinates to collect pixels' value from.
Return Value
Type:
UInt16Returns array of pixels' values from the specified coordinates.
Exceptions Exception | Condition |
---|
UnsupportedImageFormatException | Unsupported 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 |
---|
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 |
---|
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 |
---|
This method is supposed for images with 16 bpp channels only (16 bpp grayscale image and
48/64 bpp color images). |
See Also