ee.Terrain.hillShadow
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
یک نوار سایه ایجاد می کند، با خروجی 1 که در آن پیکسل ها روشن می شوند و 0 در جایی که سایه دارند. یک نوار ارتفاعی، آزیموت و اوج منبع نور بر حسب درجه، اندازه همسایگی و اعمال پسماند یا عدم اعمال پسماند زمانی که سایه ظاهر می شود را به عنوان ورودی می گیرد. در حال حاضر، این الگوریتم فقط برای پیش بینی های Mercator که در آن پرتوهای نور موازی هستند، کار می کند.
استفاده | برمی گرداند | ee.Terrain.hillShadow(image, azimuth, zenith, neighborhoodSize , hysteresis ) | تصویر |
استدلال | تایپ کنید | جزئیات | image | تصویر | تصویری که برای اعمال الگوریتم سایه، که در آن هر پیکسل باید ارتفاع را بر حسب متر نشان دهد. |
azimuth | شناور | آزیموت بر حسب درجه |
zenith | شناور | اوج در درجه. |
neighborhoodSize | عدد صحیح، پیش فرض: 0 | اندازه محله |
hysteresis | بولی، پیش فرض: نادرست | از هیسترزیس استفاده کنید. از نظر فیزیکی دقیق تر است، اما ممکن است تصاویر بهتری ایجاد کند. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eCalculates shadowing on terrain based on elevation, light source direction, and neighborhood size, outputting a binary image (1 for illuminated, 0 for shadowed).\u003c/p\u003e\n"],["\u003cp\u003eTakes an elevation image as input, along with azimuth and zenith angles of the light source, and optional parameters for neighborhood size and hysteresis.\u003c/p\u003e\n"],["\u003cp\u003eAssumes a Mercator projection where light rays are parallel and currently only supports this projection.\u003c/p\u003e\n"],["\u003cp\u003eOffers control over shadow detection accuracy with neighborhood size and hysteresis for potential trade-offs between physical accuracy and visual quality.\u003c/p\u003e\n"]]],[],null,["# ee.Terrain.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.Terrain.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. |"]]