Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Pixel Statistics » ImageStatistics
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Computes various statistics of the image pixel values.
Syntax
C++
C#
void fil::ImageStatistics ( const fil::Image& inImage, ftl::Optional<const fil::Region&> inRoi, ftl::Optional<fil::Location&> outMinimumLocation = ftl::NIL, ftl::Optional<float&> outMinimumValue = ftl::NIL, ftl::Optional<fil::Location&> outMaximumLocation = ftl::NIL, ftl::Optional<float&> outMaximumValue = ftl::NIL, ftl::Optional<fil::Pixel&> outAverageColor = ftl::NIL, ftl::Optional<float&> outAverageValue = ftl::NIL, ftl::Optional<fil::Pixel&> outSumColor = ftl::NIL, ftl::Optional<float&> outSumValue = ftl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inImage | const Image& | Input image | |
![]() |
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed |
![]() |
outMinimumLocation | Optional<Location&> | NIL | |
![]() |
outMinimumValue | Optional<float&> | NIL | |
![]() |
outMaximumLocation | Optional<Location&> | NIL | |
![]() |
outMaximumValue | Optional<float&> | NIL | |
![]() |
outAverageColor | Optional<Pixel&> | NIL | |
![]() |
outAverageValue | Optional<float&> | NIL | |
![]() |
outSumColor | Optional<Pixel&> | NIL | |
![]() |
outSumValue | Optional<float&> | NIL |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outMinimumLocation, outMinimumValue, outMaximumLocation, outMaximumValue, outAverageColor, outAverageValue, outSumColor, outSumValue.
Read more about Optional Outputs.
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Region exceeds an input image in ImageStatistics. |