ee.Image.connectedComponents
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, इनपुट के पहले बैंड की एक जैसी वैल्यू वाले कनेक्टेड कॉम्पोनेंट ढूंढता है. साथ ही, उन्हें ग्लोबल तौर पर यूनीक वैल्यू के साथ लेबल करता है. कनेक्टेडनेस, दिए गए कर्नल से तय होती है. maxSize से बड़े ऑब्जेक्ट को बैकग्राउंड माना जाता है और उन्हें मास्क कर दिया जाता है.
इस्तेमाल | रिटर्न |
---|
Image.connectedComponents(connectedness, maxSize) | इमेज |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: image | इमेज | वह इमेज जिसे लेबल करना है. |
connectedness | कर्नेल | कनेक्टेडनेस कर्नल. |
maxSize | पूर्णांक | लेबल किए जाने वाले ऑब्जेक्ट का ज़्यादा से ज़्यादा साइज़. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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\u003eIdentifies and labels connected regions within an image that share the same value in the first band.\u003c/p\u003e\n"],["\u003cp\u003eUtilizes a user-defined kernel to determine the connectivity between pixels for region identification.\u003c/p\u003e\n"],["\u003cp\u003eAssigns a unique label to each connected component, differentiating them for analysis.\u003c/p\u003e\n"],["\u003cp\u003eMasks and excludes objects exceeding a specified maximum size, treating them as background.\u003c/p\u003e\n"]]],[],null,["# ee.Image.connectedComponents\n\nFinds connected components with the same value of the first band of the input and labels them with a globally unique value. Connectedness is specified by the given kernel. Objects larger than maxSize are considered background, and are masked.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------------------------|---------|\n| Image.connectedComponents`(connectedness, maxSize)` | Image |\n\n| Argument | Type | Details |\n|-----------------|---------|----------------------------------------|\n| this: `image` | Image | The image to label. |\n| `connectedness` | Kernel | Connectedness kernel. |\n| `maxSize` | Integer | Maximum size of objects to be labeled. |"]]