sfs_mod_lr — 从灰度值图像重建表面。
sfs_mod_lr reconstructs a surface (i.e. the relative
height of each image point) using the modified algorithm of Lee and
Rosenfeld. The surface is reconstructed from the input image
Image, and the light source given by the parameters
Slant, Tilt, Albedo and
Ambient, and is assumed to lie infinitely far away in the
direction given by Slant and Tilt. The
parameter Albedo determines the albedo of the surface,
i.e. the percentage of light reflected in all directions.
Ambient determines the amount of ambient light falling
onto the surface. It can be set to values greater than zero if, for
example, the white balance of the camera was badly adjusted at the
moment the image was taken.
sfs_mod_lr assumes that the heights are to be extracted on a
lattice with step width 1. If this is not the case, the calculated
heights must be multiplied with the step width after the call to
sfs_mod_lr. A Cartesian coordinate system with the origin
in the lower left corner of the image is used internally.
sfs_mod_lr can only handle byte-images.
Image (输入对象) singlechannelimage(-array) → object (byte)
Shaded input image.
Height (输出对象) image(-array) → object (real)
Reconstructed height field.
Slant (输入控制) angle.deg → (real / integer)
Angle between the light source and the positive z-axis (in degrees).
默认值: 45.0
建议值: 1.0, 5.0, 10.0, 20.0, 40.0, 60.0, 90.0
值范围:
0.0
≤
Slant
≤
180.0 (lin)
最小增量: 0.01
建议增量: 10.0
Tilt (输入控制) angle.deg → (real / integer)
Angle between the light source and the x-axis after projection into the xy-plane (in degrees).
默认值: 45.0
建议值: 1.0, 5.0, 10.0, 20.0, 40.0, 60.0, 90.0
值范围:
0.0
≤
Tilt
≤
360.0 (lin)
最小增量: 0.01
建议增量: 10.0
Albedo (输入控制) number → (real / integer)
Amount of light reflected by the surface.
默认值: 1.0
建议值: 0.1, 0.5, 1.0, 5.0
值范围:
0.0
≤
Albedo
≤
5.0 (lin)
最小增量: 0.01
建议增量: 0.1
限制:
Albedo >= 0.0
Ambient (输入控制) number → (real / integer)
Amount of ambient light.
默认值: 0.0
建议值: 0.1, 0.5, 1.0
值范围:
0.0
≤
Ambient
≤
1.0 (lin)
最小增量: 0.01
建议增量: 0.1
限制:
Ambient >= 0.0
If all parameters are correct sfs_mod_lr 返回值 2 ( H_MSG_TRUE )。否则,将抛出异常。
estimate_al_am,
estimate_sl_al_lr,
estimate_sl_al_zc,
estimate_tilt_lr,
estimate_tilt_zc,
optimize_fft_speed
三维计量