Back to Adaptive Vision Library website

You are here: Start » Function Reference » Computer Vision » Image Analysis » PhotometricStereo_SurfaceCurvature

PhotometricStereo_SurfaceCurvature


Header: AVL.h
Namespace: avl
Module: Photometric

Computes the surface curvature using previously computed normals.

Syntax

C++
C#
 
void avl::PhotometricStereo_SurfaceCurvature
(
	const avl::Image& inSurfaceNormals,
	avl::CurvatureMeasure::Type inCurvatureMeasure,
	float inSmoothingStdDevX,
	atl::Optional<float> inSmoothingStdDevY,
	float inScale,
	float inOffset,
	avl::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.