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

CropSurfaceByPlaneProximity
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DStandard |
Removes from the surface points that are too distant from a given plane.
Syntax
C++
C#
void fil::CropSurfaceByPlaneProximity ( const fil::Surface& inSurface, ftl::Optional<const fil::Region&> inRoi, const fil::Plane3D& inPlane, ftl::Optional<float> inMinDistance, ftl::Optional<float> inMaxDistance, bool inPreserveDimensions, fil::Surface& outSurface, ftl::Optional<fil::Region&> outRejected = ftl::NIL )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSurface | const Surface& | Input surface | |
![]() |
inRoi | Optional<const Region&> | NIL | Region of interest |
![]() |
inPlane | const Plane3D& | Plane to which distance is measured | |
![]() |
inMinDistance | Optional<float> | NIL | Minimal distance from a given plane |
![]() |
inMaxDistance | Optional<float> | 1.0f | Maximal distance from a given plane |
![]() |
inPreserveDimensions | bool | False | Flag indicating whether the surface dimensions should be preserved or not |
![]() |
outSurface | Surface& | Output surface | |
![]() |
outRejected | Optional<Region&> | NIL | Region of locations where points are too distant from the input plane |
Optional Outputs
The computation of following outputs can be switched off by passing value ftl::NIL
to these parameters: outRejected.
Read more about Optional Outputs.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Indefinite plane on input in CropSurfaceByPlaneProximity. |
DomainError | Region of interest exceeds an input surface in CropSurfaceByPlaneProximity. |