Back to FabImage Library website
You are here: Start » Function Reference » Computer Vision » Image Analysis » PhotometricStereo_SurfaceCurvature

PhotometricStereo_SurfaceCurvature
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | Photometric |
Computes the surface curvature using previously computed normals.
Syntax
C++
C#
void fil::PhotometricStereo_SurfaceCurvature ( const fil::Image& inSurfaceNormals, fil::CurvatureMeasure::Type inCurvatureMeasure, float inSmoothingStdDevX, ftl::Optional<float> inSmoothingStdDevY, float inScale, float inOffset, fil::Image& outSurfaceCurvature )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inSurfaceNormals | const Image& | |||
![]() |
inCurvatureMeasure | CurvatureMeasure::Type | Gauss | Method used for measuring the surface curvature | |
![]() |
inSmoothingStdDevX | float | 0.0 - ![]() |
1.0f | Horizontal standard deviation of the gaussian smoothing applied to surface normals |
![]() |
inSmoothingStdDevY | Optional<float> | 0.0 - ![]() |
NIL | Vertical standard deviation of the gaussian smoothing applied to surface normals |
![]() |
inScale | float | 0.0 - ![]() |
1.0f | Scaling factor |
![]() |
inOffset | float | 50.0f | Value added to rescaled curvature value | |
![]() |
outSurfaceCurvature | Image& |
Requirements
For input inSurfaceNormals only pixel formats are supported: 2⨯uint8, 2⨯int8, 2⨯uint16, 2⨯int16, 2⨯int32, 2⨯real.
Read more about pixel formats in Image documentation.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Not supported inSurfaceNormals pixel format in PhotometricStereo_SurfaceCurvature. Supported formats: 2xUInt8, 2xInt8, 2xUInt16, 2xInt16, 2xInt32, 2xReal. |