ee.Algorithms.HillShadow
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Erstellt ein Schattenband mit dem Wert 1 für beleuchtete Pixel und dem Wert 0 für Schatten. Als Eingabe werden ein Höhenbereich, Azimut und Zenit der Lichtquelle in Grad, eine Nachbarschaftsgröße und die Angabe, ob bei Schattenbildung eine Hysterese angewendet werden soll, verwendet. Derzeit funktioniert dieser Algorithmus nur für Mercator-Projektionen, bei denen Lichtstrahlen parallel verlaufen.
Nutzung | Ausgabe |
---|
ee.Algorithms.HillShadow(image, azimuth, zenith, neighborhoodSize, hysteresis) | Bild |
Argument | Typ | Details |
---|
image | Bild | Das Bild, auf das der Schattenalgorithmus angewendet werden soll. Jedes Pixel sollte eine Höhe in Metern darstellen. |
azimuth | Gleitkommazahl | Azimut in Grad. |
zenith | Gleitkommazahl | Zenit in Grad. |
neighborhoodSize | Ganzzahl, Standardwert: 0 | Größe der Nachbarschaft. |
hysteresis | Boolescher Wert, Standard: „false“ | Verwenden Sie Hysterese. Weniger physikalisch korrekt, kann aber bessere Bilder generieren. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003eGenerates a binary shadow map (1 for illuminated, 0 for shadowed) based on terrain elevation, sun position, and optional hysteresis.\u003c/p\u003e\n"],["\u003cp\u003eThe algorithm utilizes a neighborhood size parameter to determine shadowing and currently supports only Mercator projections with parallel light rays.\u003c/p\u003e\n"],["\u003cp\u003eInput elevation data should be in meters and sun position is defined by azimuth and zenith angles in degrees.\u003c/p\u003e\n"],["\u003cp\u003eHysteresis can be enabled to potentially improve visual results but may compromise physical accuracy.\u003c/p\u003e\n"]]],["The `HillShadow` algorithm generates a shadow band (1 for illuminated, 0 for shadowed pixels) for Mercator projections. It requires an elevation image, light source azimuth and zenith angles, and a neighborhood size. Hysteresis can be optionally applied for potentially improved visuals. The algorithm's inputs include the elevation image, azimuth (degrees), zenith (degrees), neighborhood size, and a boolean for hysteresis, outputting a shadow band image.\n"],null,["# ee.Algorithms.HillShadow\n\nCreates a shadow band, with output 1 where pixels are illumunated and 0 where they are shadowed. Takes as input an elevation band, azimuth and zenith of the light source in degrees, a neighborhood size, and whether or not to apply hysteresis when a shadow appears. Currently, this algorithm only works for Mercator projections, in which light rays are parallel.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------------------------------------|---------|\n| `ee.Algorithms.HillShadow(image, azimuth, zenith, `*neighborhoodSize* `, `*hysteresis*`)` | Image |\n\n| Argument | Type | Details |\n|--------------------|-------------------------|----------------------------------------------------------------------------------------------------------------|\n| `image` | Image | The image to which to apply the shadow algorithm, in which each pixel should represent an elevation in meters. |\n| `azimuth` | Float | Azimuth in degrees. |\n| `zenith` | Float | Zenith in degrees. |\n| `neighborhoodSize` | Integer, default: 0 | Neighborhood size. |\n| `hysteresis` | Boolean, default: false | Use hysteresis. Less physically accurate, but may generate better images. |"]]