Back to Adaptive Vision Library Lite website
You are here: Start » Image Pixel Statistics » ImageAverage
![](../../img/icon/ImageAverage.png)
ImageAverage
Computes the average of the image pixel values.
Syntax
void avl::ImageAverage ( const avl::Image& inImage, atl::Optional<const avl::Region&> inRoi, avl::Pixel& outAverageColor, atl::Optional<float&> outAverageValue = atl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inImage | const Image& | Input image | |
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed |
![]() |
outAverageColor | Pixel& | ||
![]() |
outAverageValue | Optional<float&> | NIL |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
Error type | Description |
---|---|
DomainError | Empty region of interest on input in ImageAverage. |