Loading [MathJax]/extensions/tex2jax.js
Back to FabImage Library website

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

PhotometricStereo_General_Perform


Header: FIL.h
Namespace: fil
Module: Photometric

Computes surface normals using images with light source in different places.

Syntax

C++
C#
 
void fil::PhotometricStereo_General_Perform
(
	const ftl::Array<fil::Image>& inImages,
	const ftl::Array<float>& inLightXYAngles,
	const ftl::Array<float>& inLightZAngles,
	fil::Image& outSurfaceNormals,
	fil::Image& outIntensities,
	fil::Image& outAlbedo
)

Parameters

Name Type Default Description
Input value inImages const Array<Image>&
Input value inLightXYAngles const Array<float>& Angle of light source on XY plane
Input value inLightZAngles const Array<float>& Angle between light source and normal, where normal is camera optical axis
Output value outSurfaceNormals Image&
Output value outIntensities Image&
Output value outAlbedo Image&

Examples

The picture above presents the angles to which the inLightXYAngles input refers.

The picture above presents the angles to which the inLightZAngles input refers.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Errors

List of possible exceptions:

Error type Description
DomainError Different image dimensions on input in PhotometricStereo_General_Perform.
DomainError Different types of images on input in PhotometricStereo_General_Perform.
DomainError Inconsistent array sizes in PhotometricStereo_General_Perform.
DomainError Not enough images on input in PhotometricStereo_General_Perform.
DomainError Not single-channel image on input in PhotometricStereo_General_Perform.

See Also