Skip to content

estimate_sl_al_zcestimate_sl_al_zcEstimateSlAlZcEstimateSlAlZcestimate_sl_al_zcestimate_sl_al_zc🔗

Short description🔗

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

Signature🔗

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

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

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

HTuple HImage::EstimateSlAlZc( HTuple* Albedo ) const

double HImage::EstimateSlAlZc( double* Albedo ) const

HTuple HImage.EstimateSlAlZc( out HTuple albedo )

double HImage.EstimateSlAlZc( out double albedo )

Description🔗

estimate_sl_al_zcEstimateSlAlZc 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 Zheng and Chellappa.

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 of 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_zcEstimateSlAlZc 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