ee.Image.cumulativeCost
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, हर पिक्सल को पार करने की लागत वाली इमेज और सोर्स लोकेशन वाली इमेज के आधार पर, कुल लागत का मैप बनाता है.
हर आउटपुट बैंड, इनपुट कॉस्ट बैंड के हिसाब से कुल लागत दिखाता है.
इस्तेमाल | रिटर्न |
---|
Image.cumulativeCost(source, maxDistance, geodeticDistance) | इमेज |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: cost | इमेज | हर पिक्सल को पार करने की लागत दिखाने वाली इमेज. मास्क किए गए पिक्सल को ट्रैवर्स नहीं किया जा सकता. पिक्सेल ट्रैवर्सल की लागत की तुलना करते समय, हम बैंड के हिसाब से डिक्शनरी ऑर्डरिंग का इस्तेमाल करते हैं. सहायक लागत बैंड सिर्फ़ तब माने जाते हैं, जब मुख्य बैंड के रास्ते की लागत बराबर हो. |
source | इमेज | सोर्स दिखाने वाली सिंगल-बैंड इमेज. पिक्सल की वैल्यू 0 से अलग होने का मतलब है कि वह सोर्स पिक्सल है. |
maxDistance | फ़्लोट | मीटर में, हिसाब लगाने के लिए ज़्यादा से ज़्यादा दूरी. |
geodeticDistance | बूलियन, डिफ़ॉल्ट: true | अगर यह वैल्यू सही है, तो घुमावदार सतह के साथ-साथ जियोडेटिक दूरी का इस्तेमाल किया जाता है. इसमें यह माना जाता है कि पृथ्वी की त्रिज्या 6378137.0 है. अगर यह वैल्यू 'गलत है', तो मैप प्रोजेक्शन के 2D प्लैन में यूक्लिडियन दूरी का इस्तेमाल किया जाता है. इससे दूरी का अनुमान तेज़ी से लगाया जा सकता है, लेकिन यह सटीक नहीं होता. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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). |"]]