ee.Image.connectedComponents
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ค้นหาคอมโพเนนต์ที่เชื่อมต่อซึ่งมีค่าแถบแรกของอินพุตเหมือนกัน และติดป้ายกำกับด้วยค่าที่ไม่ซ้ำกันทั่วโลก ความเชื่อมต่อจะระบุโดยเคอร์เนลที่กำหนด ระบบจะถือว่าออบเจ็กต์ที่มีขนาดใหญ่กว่า maxSize เป็นพื้นหลังและจะมาสก์ออบเจ็กต์ดังกล่าว
การใช้งาน | การคืนสินค้า |
---|
Image.connectedComponents(connectedness, maxSize) | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ image | รูปภาพ | รูปภาพที่จะติดป้ายกำกับ |
connectedness | เคอร์เนล | เคอร์เนลความเชื่อมโยง |
maxSize | จำนวนเต็ม | ขนาดสูงสุดของออบเจ็กต์ที่จะติดป้ายกำกับ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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. |"]]