Back to FabImage Library website

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

DaPImageMedian


Header:FIL.h
Namespace:fil

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,
	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
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.