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 | |
---|---|---|---|---|
![]() |
inImages | const Array<Image>& | ||
![]() |
inLightXYAngles | const Array<float>& | Angle of light source on XY plane | |
![]() |
inLightZAngles | const Array<float>& | Angle between light source and normal, where normal is camera optical axis | |
![]() |
outSurfaceNormals | Image& | ||
![]() |
outIntensities | Image& | ||
![]() |
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
- PhotometricStereo_Perform – Computes surface normals using four images with light source in different places.