공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.Image.cumulativeCost
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
각 픽셀을 통과하는 비용이 포함된 이미지와 소스 위치가 포함된 이미지를 기반으로 누적 비용 맵을 계산합니다.
각 출력 대역은 해당 입력 비용 대역의 누적 비용을 나타냅니다.
사용 | 반환 값 |
---|
Image.cumulativeCost(source, maxDistance, geodeticDistance) | 이미지 |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: cost | 이미지 | 각 픽셀을 통과하는 비용을 나타내는 이미지입니다. 마스크 처리된 픽셀은 통과할 수 없습니다. 픽셀 순회 비용을 비교할 때는 밴드별 사전 순서를 사용합니다. 보조 비용 대역은 기본 대역의 경로 비용이 동일한 경우에만 고려됩니다. |
source | 이미지 | 소스를 나타내는 단일 밴드 이미지입니다. 0이 아닌 픽셀 값은 소스 픽셀을 정의합니다. |
maxDistance | 부동 소수점 수 | 계산할 최대 거리(미터)입니다. |
geodeticDistance | 불리언, 기본값: true | true인 경우 반지름이 6378137.0인 구형 지구를 가정하여 곡면을 따라 측지 거리가 사용됩니다. false인 경우 지도 투영의 2D 평면에서 유클리드 거리가 사용됩니다 (더 빠르지만 정확도는 떨어짐). |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 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 cumulative cost map indicating the cost of reaching each pixel from the nearest source.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a cost image and a source image to calculate cumulative costs.\u003c/p\u003e\n"],["\u003cp\u003eConsiders maximum distance and allows for both geodetic and Euclidean distance calculations.\u003c/p\u003e\n"],["\u003cp\u003eOutput image bands correspond to cumulative costs over the input cost bands.\u003c/p\u003e\n"],["\u003cp\u003eUntraversable areas are represented by masked pixels in the cost image.\u003c/p\u003e\n"]]],[],null,["# ee.Image.cumulativeCost\n\nComputes a cumulative cost map based on an image containing costs to traverse each pixel and an image containing source locations.\n\n\u003cbr /\u003e\n\nEach output band represents the cumulative cost over the corresponding input cost band.\n\n| Usage | Returns |\n|-------------------------------------------------------------------|---------|\n| Image.cumulativeCost`(source, maxDistance, `*geodeticDistance*`)` | Image |\n\n| Argument | Type | Details |\n|--------------------|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `cost` | Image | An image representing the cost to traverse each pixel. Masked pixels can't be traversed. When comparing pixel traversal costs, we use band-wise dictionary ordering. Ancillary cost bands are only considered when paths over primary bands are equal cost. |\n| `source` | Image | A single-band image representing the sources. A pixel value different from 0 defines a source pixel. |\n| `maxDistance` | Float | Maximum distance for computation, in meters. |\n| `geodeticDistance` | Boolean, default: true | If true, geodetic distance along the curved surface is used, assuming a spherical Earth of radius 6378137.0. If false, Euclidean distance in the 2D plane of the map projection is used (faster, but less accurate). |"]]