estimate_al_am ( Image : : : Albedo, Ambient )

Estimate the albedo of a surface and the amount of ambient light.

estimate_al_am estimates the Albedo of a surface, i.e. the percentage of light reflected by the surface, and the amount of ambient light Ambient by using the maximum and minimum gray values of the image.


Attention

It is assumed that the image contains at least one point for which the reflection function assumes its minimum, e.g., points in shadows. Furthermore, it is assumed that the image contains at least one point for which the reflection function assumes its maximum. If this is not the case, wrong values will be estimated.


Parameters

Image (input_object)
image(-array) -> object : byte
Image for which albedo and ambient are to be estimated.

Albedo (output_control)
real(-array) -> real
Amount of light reflected by the surface.

Ambient (output_control)
real(-array) -> real
Amount of ambient light.


Result

estimate_al_am always returns the value 2 (H_MSG_TRUE).


Parallelization Information

estimate_al_am is reentrant and automatically parallelized (on tuple level).


Possible Successors

sfs_mod_lr, sfs_orig_lr, sfs_pentland, phot_stereo, shade_height_field


Module

3D Metrology



Copyright © 1996-2008 MVTec Software GmbH