|
UnmanagedImageCollect8bppPixelValues 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 byte[] Collect8bppPixelValues(
List<IntPoint> points
)
Public Function Collect8bppPixelValues (
points As List(Of IntPoint)
) As Byte()
Request Example
View SourceParameters
- points
- Type: System.Collections.GenericListIntPoint
List of coordinates to collect pixels' value from.
Return Value
Type:
ByteReturns array of pixels' values from the specified coordinates.
Exceptions Exception | Condition |
---|
UnsupportedImageFormatException | Unsupported pixel format of the source image. Use Collect16bppPixelValues() method for
images with 16 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 8 bpp channels only (8 bpp grayscale image and
24/32 bpp color images). |
See Also