Back to Adaptive Vision Library website
You are here: Start » Function Reference » Image Basics » GetImagePixel
Returns a single pixel of an image.
Syntax
C++
C#
void avl::GetImagePixel ( const avl::Image& inImage, const avl::Location& inLocation, avl::Pixel& outPixel, atl::real& outValue )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inImage | const Image& | Input image | |
![]() |
inLocation | const Location& | Location of the pixel to be accessed | |
![]() |
outPixel | Pixel& | Output pixel | |
![]() |
outValue | real& | Average pixel value |
Errors
| Error type | Description |
|---|---|
| DomainError | Input location exceeds dimensions of an input image in GetImagePixel. |


