Back to Aurora Vision Library website

You are here: Start » Function Reference » Surface » Surface Features » SurfaceMedian_OrNil

SurfaceMedian_OrNil


Header: AVL.h
Namespace: avl
Module: Vision3DStandard

Finds the median Z coordinate of the surface points; returns NIL if the surface is empty in the given region.

Syntax

C++
C#
 
void avl::SurfaceMedian_OrNil
(
	const avl::Surface& inSurface,
	atl::Optional<const avl::Region&> inRoi,
	atl::Conditional<float>& outMedian
)

Parameters

Name Type Default Description
Input value inSurface const Surface& Input surface
Input value inRoi Optional<const Region&> NIL Region of interest
Output value outMedian Conditional<float>& Median Z coordinate of the surface points

Errors

List of possible exceptions:

Error type Description
DomainError Region of interest exceeds an input surface in SurfaceMedian_OrNil.