estimate_al_amestimate_al_amEstimateAlAmEstimateAlAmestimate_al_am (算子)
名称
estimate_al_amestimate_al_amEstimateAlAmEstimateAlAmestimate_al_am — 估计表面的反射率和环境光量。
签名
def estimate_al_am(image: HObject) -> Tuple[Sequence[float], Sequence[float]]
def estimate_al_am_s(image: HObject) -> Tuple[float, float]
描述
estimate_al_amestimate_al_amEstimateAlAmEstimateAlAmEstimateAlAmestimate_al_am estimates the AlbedoAlbedoAlbedoAlbedoalbedoalbedo of a
surface, i.e. the percentage of light reflected by the surface, and
the amount of ambient light AmbientAmbientAmbientAmbientambientambient by using the maximum
and minimum gray values of the image.
注意
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.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 在元组级别上自动并行化。
参数
ImageImageImageImageimageimage (输入对象) singlechannelimage(-array) → objectHImageHObjectHImageHobject (byte)
Image for which albedo and ambient are to be estimated.
AlbedoAlbedoAlbedoAlbedoalbedoalbedo (输出控制) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Amount of light reflected by the surface.
AmbientAmbientAmbientAmbientambientambient (输出控制) real(-array) → HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Amount of ambient light.
结果
estimate_al_amestimate_al_amEstimateAlAmEstimateAlAmEstimateAlAmestimate_al_am 始终返回值 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
模块
三维计量