Herror ::estimate_sl_al_lr (
    Hobject Image,
    double *Slant,
    double *Albedo
)
Herror ::estimate_sl_al_lr (
    Hobject Image,
    HTuple *Slant,
    HTuple *Albedo
)
double HImage::EstimateSlAlLr (
    double *Albedo
) const
HTuple HImageArray::EstimateSlAlLr (
    HTuple *Albedo
) const

Estimate the slant of a light source and the albedo of a surface.

::estimate_sl_al_lr estimates the Slant of a light source, i.e., the angle between the light source and the positive z-axis, and the albedo of the surface in the input image Image, i.e. the percentage of light reflected by the surface, using the algorithm of Lee and Rosenfeld.


Attention

The Albedo is assumed constant for the entire surface depicted in the image.


Parameters

Image (input_object)
image(-array) -> Hobject: HImage(Array)
Image for which slant and albedo are to be estimated.

Slant (output_control)
angle.deg(-array) -> (HTuple.) double *
Angle between the light sources and the positive z-axis (in degrees).

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


Result

::estimate_sl_al_lr always returns the value H_MSG_TRUE.


Possible Successors

::sfs_mod_lr, ::sfs_orig_lr, ::sfs_pentland, ::phot_stereo, ::shade_height_field


Module

Tools



Copyright © 1996-2002 MVTec Software GmbH