Computes the average of the image pixel values.
|inRoi||Region*||Range of pixels to be processed|
|outAverageColor||Pixel||Average of each channel|
|outAverageValue||Real||Average of the entire image|
The function calculates average of pixel values in the inImage.
Average values of pixels calculated for each channel are returned in outAverageColor, while calculated for the region of interest - in outAverageValue. If region of interest isn't specified, average is calculated for the entire image.
- Connect inImage with the output of your image acquisition filter.
Minimal image size requirement
The input image shouldn't be empty.
Minimal region of interest size requirement
The input region of interest shouldn't be empty.
This operation supports automatic parallelization for multicore and multiprocessor systems.
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
|DomainError||Empty image on input in ImageAverage.|
|DomainError||Empty region of interest on input in ImageAverage.|
This filter is available on Basic Complexity Level.