estimate_sl_al_lrestimate_sl_al_lrEstimateSlAlLrEstimateSlAlLrestimate_sl_al_lr (算子名称)
名称
estimate_sl_al_lrestimate_sl_al_lrEstimateSlAlLrEstimateSlAlLrestimate_sl_al_lr — Estimate the slant of a light source and the albedo of a surface.
参数签名
def estimate_sl_al_lr(image: HObject) -> Tuple[Sequence[float], Sequence[float]]
def estimate_sl_al_lr_s(image: HObject) -> Tuple[float, float]
描述
estimate_sl_al_lrestimate_sl_al_lrEstimateSlAlLrEstimateSlAlLrEstimateSlAlLrestimate_sl_al_lr estimates the SlantSlantSlantSlantslantslant 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
ImageImageImageImageimageimage, i.e. the percentage of light reflected by the
surface, using the algorithm of Lee and Rosenfeld.
注意
The AlbedoAlbedoAlbedoAlbedoalbedoalbedo is assumed constant for the entire surface
depicted in the image.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 在元组级别自动并行化。
参数表
ImageImageImageImageimageimage (input_object) singlechannelimage(-array) → objectHImageHObjectHImageHobject (byte)
Image for which slant and albedo are to be estimated.
SlantSlantSlantSlantslantslant (output_control) angle.deg(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Angle between the light sources and the positive z-axis
(in degrees).
AlbedoAlbedoAlbedoAlbedoalbedoalbedo (output_control) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Amount of light reflected by the surface.
结果
estimate_sl_al_lrestimate_sl_al_lrEstimateSlAlLrEstimateSlAlLrEstimateSlAlLrestimate_sl_al_lr always 返回值 2 (
H_MSG_TRUE)
.
可能的后置算子
sfs_mod_lrsfs_mod_lrSfsModLrSfsModLrSfsModLrsfs_mod_lr,
sfs_orig_lrsfs_orig_lrSfsOrigLrSfsOrigLrSfsOrigLrsfs_orig_lr,
sfs_pentlandsfs_pentlandSfsPentlandSfsPentlandSfsPentlandsfs_pentland,
photometric_stereophotometric_stereoPhotometricStereoPhotometricStereoPhotometricStereophotometric_stereo,
shade_height_fieldshade_height_fieldShadeHeightFieldShadeHeightFieldShadeHeightFieldshade_height_field
模块
3D Metrology