Skip to content

estimate_sl_al_lrestimate_sl_al_lrEstimateSlAlLrEstimateSlAlLrestimate_sl_al_lrestimate_sl_al_lr🔗

Short description🔗

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

Signature🔗

estimate_sl_al_lr( image Image, out angle.deg Slant, out real Albedo )estimate_sl_al_lr( Image : : : Slant, Albedo )void EstimateSlAlLr( const HObject& Image, HTuple* Slant, HTuple* Albedo )static void HOperatorSet.EstimateSlAlLr( HObject image, out HTuple slant, out HTuple albedo )def estimate_sl_al_lr( image: HObject ) -> Tuple[Sequence[float], Sequence[float]]

def estimate_sl_al_lr_s( image: HObject ) -> Tuple[float, float]Herror estimate_sl_al_lr( const Hobject Image, double* Slant, double* Albedo )

Herror T_estimate_sl_al_lr( const Hobject Image, Htuple* Slant, Htuple* Albedo )

HTuple HImage::EstimateSlAlLr( HTuple* Albedo ) const

double HImage::EstimateSlAlLr( double* Albedo ) const

HTuple HImage.EstimateSlAlLr( out HTuple albedo )

double HImage.EstimateSlAlLr( out double albedo )

Description🔗

estimate_sl_al_lrEstimateSlAlLr estimates the Slantslantslant 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 Imageimageimage, i.e. the percentage of light reflected by the surface, using the algorithm of Lee and Rosenfeld.

Attention🔗

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

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Automatically parallelized on tuple level.

Parameters🔗

Imageimageimage (input_object) singlechannelimage(-array) → object (byte)object (byte)HObject (byte)HImage (byte)HObject (byte)Hobject (byte)

Image for which slant and albedo are to be estimated.

Slantslantslant (output_control) angle.deg(-array) → (real)(real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Angle between the light sources and the positive z-axis (in degrees).

Albedoalbedoalbedo (output_control) real(-array) → (real)(real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Amount of light reflected by the surface.

Result🔗

estimate_sl_al_lrEstimateSlAlLr always returns the value 2 (H_MSG_TRUE).

Combinations with other operators🔗

Combinations

Possible successors

sfs_mod_lrSfsModLr, sfs_orig_lrSfsOrigLr, sfs_pentlandSfsPentland, photometric_stereoPhotometricStereo, shade_height_fieldShadeHeightField

Module🔗

3D Metrology