Name
shade_height_fieldshade_height_fieldShadeHeightFieldshade_height_fieldShadeHeightFieldShadeHeightField — Shade a height field.
Herror shade_height_field(const Hobject ImageHeight, Hobject* ImageShade, double Slant, double Tilt, double Albedo, double Ambient, const char* Shadows)
Herror T_shade_height_field(const Hobject ImageHeight, Hobject* ImageShade, const Htuple Slant, const Htuple Tilt, const Htuple Albedo, const Htuple Ambient, const Htuple Shadows)
Herror shade_height_field(Hobject ImageHeight, Hobject* ImageShade, const HTuple& Slant, const HTuple& Tilt, const HTuple& Albedo, const HTuple& Ambient, const HTuple& Shadows)
HImage HImage::ShadeHeightField(const HTuple& Slant, const HTuple& Tilt, const HTuple& Albedo, const HTuple& Ambient, const HTuple& Shadows) const
HImageArray HImageArray::ShadeHeightField(const HTuple& Slant, const HTuple& Tilt, const HTuple& Albedo, const HTuple& Ambient, const HTuple& Shadows) const
void ShadeHeightField(const HObject& ImageHeight, HObject* ImageShade, const HTuple& Slant, const HTuple& Tilt, const HTuple& Albedo, const HTuple& Ambient, const HTuple& Shadows)
HImage HImage::ShadeHeightField(const HTuple& Slant, const HTuple& Tilt, const HTuple& Albedo, const HTuple& Ambient, const HString& Shadows) const
HImage HImage::ShadeHeightField(double Slant, double Tilt, double Albedo, double Ambient, const HString& Shadows) const
HImage HImage::ShadeHeightField(double Slant, double Tilt, double Albedo, double Ambient, const char* Shadows) const
void HOperatorSetX.ShadeHeightField(
[in] IHUntypedObjectX* ImageHeight, [out] IHUntypedObjectX** ImageShade, [in] VARIANT Slant, [in] VARIANT Tilt, [in] VARIANT Albedo, [in] VARIANT Ambient, [in] VARIANT Shadows)
IHImageX* HImageX.ShadeHeightField(
[in] VARIANT Slant, [in] VARIANT Tilt, [in] VARIANT Albedo, [in] VARIANT Ambient, [in] BSTR Shadows)
static void HOperatorSet.ShadeHeightField(HObject imageHeight, out HObject imageShade, HTuple slant, HTuple tilt, HTuple albedo, HTuple ambient, HTuple shadows)
HImage HImage.ShadeHeightField(HTuple slant, HTuple tilt, HTuple albedo, HTuple ambient, string shadows)
HImage HImage.ShadeHeightField(double slant, double tilt, double albedo, double ambient, string shadows)
shade_height_fieldshade_height_fieldShadeHeightFieldshade_height_fieldShadeHeightFieldShadeHeightField computes a shaded image from the
height field ImageHeightImageHeightImageHeightImageHeightImageHeightimageHeight as if the image were illuminated
by an infinitely far away light source. It is assumed that the
surface described by the height field has Lambertian reflection
properties determined by AlbedoAlbedoAlbedoAlbedoAlbedoalbedo and AmbientAmbientAmbientAmbientAmbientambient.
The parameter ShadowsShadowsShadowsShadowsShadowsshadows determines whether shadows are to
be calculated.
shade_height_fieldshade_height_fieldShadeHeightFieldshade_height_fieldShadeHeightFieldShadeHeightField assumes that the heights are given
on a lattice with step width 1. If this is not the case, the
heights must be divided by the step width before the call to
shade_height_fieldshade_height_fieldShadeHeightFieldshade_height_fieldShadeHeightFieldShadeHeightField. Otherwise, the derivatives used
internally to compute the orientation of the surface will be
estimated to steep or too flat. Example: The height field is given
on 100*100 points on the square [0,1]*[0,1]. Then the heights must
be divided by 1/100 first. A Cartesian coordinate system with the
origin in the lower left corner of the image is used internally.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Automatically parallelized on tuple level.
Height field to be shaded.
Angle between the light source and the positive z-axis
(in degrees).
Default value: 0.0
Suggested values: 1.0, 5.0, 10.0, 20.0, 40.0, 60.0, 90.0
Typical range of values: 0.0
≤
Slant
Slant
Slant
Slant
Slant
slant
≤
180.0 (lin)
Minimum increment: 0.01
Recommended increment: 10.0
TiltTiltTiltTiltTilttilt (input_control) angle.deg → HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)
Angle between the light source and the x-axis after
projection into the xy-plane (in degrees).
Default value: 0.0
Suggested values: 1.0, 5.0, 10.0, 20.0, 40.0, 60.0, 90.0
Typical range of values: 0.0
≤
Tilt
Tilt
Tilt
Tilt
Tilt
tilt
≤
360.0 (lin)
Minimum increment: 0.01
Recommended increment: 10.0
Amount of light reflected by the surface.
Default value: 1.0
Suggested values: 0.1, 0.5, 1.0, 5.0
Typical range of values: 0.0
≤
Albedo
Albedo
Albedo
Albedo
Albedo
albedo
≤
5.0 (lin)
Minimum increment: 0.01
Recommended increment: 0.1
Restriction: Albedo >= 0.0
Amount of ambient light.
Default value: 0.0
Suggested values: 0.1, 0.5, 1.0
Typical range of values: 0.0
≤
Ambient
Ambient
Ambient
Ambient
Ambient
ambient
≤
1.0 (lin)
Minimum increment: 0.01
Recommended increment: 0.1
Restriction: Ambient >= 0.0
Should shadows be calculated?
Default value:
'false'
"false"
"false"
"false"
"false"
"false"
Suggested values: 'true'"true""true""true""true""true", 'false'"false""false""false""false""false"
If all parameters are correct shade_height_fieldshade_height_fieldShadeHeightFieldshade_height_fieldShadeHeightFieldShadeHeightField returns
the value 2 (H_MSG_TRUE). Otherwise, an exception is raised.
sfs_mod_lrsfs_mod_lrSfsModLrsfs_mod_lrSfsModLrSfsModLr,
sfs_orig_lrsfs_orig_lrSfsOrigLrsfs_orig_lrSfsOrigLrSfsOrigLr,
sfs_pentlandsfs_pentlandSfsPentlandsfs_pentlandSfsPentlandSfsPentland,
photometric_stereophotometric_stereoPhotometricStereophotometric_stereoPhotometricStereoPhotometricStereo
Foundation