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
Input value
inSurfaceNormals const Image&
Input value
inCurvatureMeasure CurvatureMeasure::Type Gauss Method used for measuring the surface curvature
Input value
inSmoothingStdDevX float 0.0 - 1.0f Horizontal standard deviation of the gaussian smoothing applied to surface normals
Input value
inSmoothingStdDevY Optional<float> 0.0 - NIL Vertical standard deviation of the gaussian smoothing applied to surface normals
Input value
inScale float 0.0 - 1.0f Scaling factor
Input value
inOffset float 50.0f Value added to rescaled curvature value
Output 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.