Back to FabImage Library website
You are here: Start » Function Reference » Surface » Surface Spatial Transforms » CloseSurfacePoints

CloseSurfacePoints
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DStandard |
Reconstructs missing points of the input surface by interpolating neighboring points.
Syntax
C++
C#
void fil::CloseSurfacePoints ( const fil::Surface& inSurface, ftl::Optional<const fil::Region&> inRoi, fil::KernelShape::Type inKernel, int inRadiusX, ftl::Optional<int> inRadiusY, fil::Surface& outSurface )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inSurface | const Surface& | Input surface | ||
![]() |
inRoi | Optional<const Region&> | NIL | Region of interest | |
![]() |
inKernel | KernelShape::Type | Kernel shape (predefined) | ||
![]() |
inRadiusX | int | 0 - ![]() |
1 | Nearly half of the kernel's width (2*R+1) |
![]() |
inRadiusY | Optional<int> | 0 - ![]() |
NIL | Nearly half of the kernel's height (2*R+1), or same as inRadiusX |
![]() |
outSurface | Surface& | Output surface |
Description
The operation reconstructs some of missing points of the input surface by interpolating their neighboring points. Internally the region of surface valid points is closed using defined kernel. Every missing point in location that have emerged because of the closing is substituted with the arithmetic mean of existing points in locations that would be covered by the kernel if the middle of the kernel was precisely over the missing point location.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Region of interest exceeds an input surface in CloseSurfacePoints. |
See Also
- SurfaceValidPointsRegion – Computes region of locations where points are valid in a surface and where they are invalid.
- CloseRegion – Performs a morphological closing on a region using selected predefined kernel.