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

RescaleSurface
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Vision3DStandard |
Changes the distances of surface points to a reference point.
Syntax
C++
C#
void fil::RescaleSurface ( const fil::Surface& inSurface, const fil::Point3D& inReferencePoint, float inScaleX, ftl::Optional<float> inScaleY, ftl::Optional<float> inScaleZ, bool inInverse, fil::Surface& outSurface )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inSurface | const Surface& | Input surface | |
![]() |
inReferencePoint | const Point3D& | Point to which the distances will be changed | |
![]() |
inScaleX | float | 1.0f | Scaling factor along X axis |
![]() |
inScaleY | Optional<float> | NIL | Scaling factor along Y axis |
![]() |
inScaleZ | Optional<float> | NIL | Scaling factor along Z axis |
![]() |
inInverse | bool | Switches to the inverse operation | |
![]() |
outSurface | Surface& | Rescaled surface |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Scale cannot be zero in an inverse rescaling in RescaleSurface. |