공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Algorithms.HillShadow
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
픽셀이 조명된 곳은 1, 그림자가 있는 곳은 0인 그림자 밴드를 만듭니다. 고도 범위, 광원의 방위각과 천정각(도), 이웃 크기, 그림자가 표시될 때 히스테리시스를 적용할지 여부를 입력으로 사용합니다. 현재 이 알고리즘은 광선이 평행한 메르카토르 투영에만 적용됩니다.
사용 | 반환 값 |
---|
ee.Algorithms.HillShadow(image, azimuth, zenith, neighborhoodSize, hysteresis) | 이미지 |
인수 | 유형 | 세부정보 |
---|
image | 이미지 | 그림자 알고리즘을 적용할 이미지입니다. 각 픽셀은 미터 단위의 고도를 나타내야 합니다. |
azimuth | 부동 소수점 수 | 방위각(도)입니다. |
zenith | 부동 소수점 수 | 천정(도)입니다. |
neighborhoodSize | 정수, 기본값: 0 | 이웃 크기입니다. |
hysteresis | 불리언, 기본값: false | 히스테리시스 사용 물리적 정확성은 떨어지지만 더 나은 이미지를 생성할 수 있습니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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. |"]]