Back to FabImage Library website
You are here: Start » Function Reference » Surface » Surface Features » SurfaceMedian

SurfaceMedian
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DStandard |
Finds the median Z coordinate of the surface points.
Syntax
C++
C#
void fil::SurfaceMedian ( const fil::Surface& inSurface, ftl::Optional<const fil::Region&> inRoi, float& outMedian )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSurface | const Surface& | Input surface | |
![]() |
inRoi | Optional<const Region&> | NIL | Region of interest |
![]() |
outMedian | float& | Median Z coordinate of the surface points |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | No valid point in given region in SurfaceMedian. |
DomainError | Region of interest exceeds an input surface in SurfaceMedian. |