Back to FabImage Library website

You are here: Start » Function Reference » Image » Image Pixel Statistics » DaPImageMedian

DaPImageMedian


Header: FIL.h
Namespace: fil
Module: FoundationPro

Computes the average direction within the region of interest.

Syntax

C++
C#
 
void fil::DaPImageMedian
(
	const fil::Image& inDaPImage,
	ftl::Optional<const fil::Region&> inRoi,
	fil::AngleRange::Type inAngleRange,
	float& outMedianAngle
)

Parameters

Name Type Default Description
Input value inDaPImage const Image& A result of GradientDirAndPresenceImage filter
Input value inRoi Optional<const Region&> NIL Range of pixels to be processed
Input value inAngleRange AngleRange::Type _0_360
Output value 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.