Back to Adaptive Vision Library website

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

PhotometricStereo_ComputeHeightMap


Header: AVL.h
Namespace: avl
Module: Photometric

Computes the shape of the image object using surface normals.

Syntax

C++
C#
 
void avl::PhotometricStereo_ComputeHeightMap
(
	const avl::Image& inSurfaceNormals,
	avl::Image& outHeightMap
)

Parameters

Name Type Default Description
inSurfaceNormals const Image&
outHeightMap Image&

Requirements

For input inSurfaceNormals only pixel formats are supported: 2⨯real.

Read more about pixel formats in Image documentation.

Errors

List of possible exceptions:

Error type Description
DomainError No proper structure available to compute heights for given image dimensions in PhotometricStereo_ComputeHeightMap. Please use PhotometricStereo_InitializeHeightMapStruct before using this function.
DomainError Not supported inSurfaceNormals pixel format in PhotometricStereo_ComputeHeightMap.