Back to Aurora Vision Library website
You are here: Start » Function Reference » Image » Image Pixel Statistics » DaPImageMedian
DaPImageMedian
Header: | AVL.h |
---|---|
Namespace: | avl |
Module: | FoundationPro |
Computes the average direction within the region of interest.
Syntax
C++
C#
void avl::DaPImageMedian ( const avl::Image& inDaPImage, atl::Optional<const avl::Region&> inRoi, avl::AngleRange::Type inAngleRange, float& outMedianAngle )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
inDaPImage | const Image& | A result of GradientDirAndPresenceImage filter | ||
inRoi | Optional<const Region&> | NIL | Range of pixels to be processed | |
inAngleRange | AngleRange::Type | _0_360 | ||
outMedianAngle | float& |
Requirements
For input inDaPImage only pixel formats are supported: 1⨯uint8.
Read more about pixel formats in Image documentation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported inDaPImage pixel format in DaPImageMedian. Supported formats: 1xUInt8. |