ee.ImageCollection.toArray
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แปลงคอลเล็กชันรูปภาพเป็นรูปภาพของอาร์เรย์ 2 มิติ ที่แต่ละพิกเซล รูปภาพที่มีค่าที่ถูกต้อง (ไม่มาสก์) ในทุกแบนด์จะวางตามแกนแรกของอาร์เรย์ตามลำดับที่ปรากฏในคอลเล็กชันรูปภาพ แถบของแต่ละรูปภาพจะวางตามแกนที่ 2 ของอาร์เรย์ ตามลำดับที่แถบปรากฏในรูปภาพนั้น ประเภทองค์ประกอบอาร์เรย์จะเป็นยูเนียนของประเภทของแต่ละแบนด์
การใช้งาน | การคืนสินค้า |
---|
ImageCollection.toArray() | รูปภาพ |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ collection | ImageCollection | คอลเล็กชันรูปภาพที่จะแปลงเป็นรูปภาพอาร์เรย์ แถบต้องมีค่าสเกลาร์ ไม่ใช่ค่าอาร์เรย์ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eTransforms an image collection into a single image where each pixel represents a 2D array containing data from all valid images in the collection.\u003c/p\u003e\n"],["\u003cp\u003eThe 2D array at each pixel is organized with images along the first axis and their respective bands along the second axis, preserving the original order.\u003c/p\u003e\n"],["\u003cp\u003eThe resulting image's array element type adapts to accommodate the various data types present in the input image collection's bands.\u003c/p\u003e\n"],["\u003cp\u003eThis operation is initiated using the \u003ccode\u003etoArray()\u003c/code\u003e method on an ImageCollection object, returning a new Image object.\u003c/p\u003e\n"],["\u003cp\u003eInput image collections should only contain bands with scalar values, not array values, for proper conversion.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.toArray\n\nConverts an image collection into an image of 2D arrays. At each pixel, the images that have valid (unmasked) values in all bands are laid out along the first axis of the array in the order they appear in the image collection. The bands of each image are laid out along the second axis of the array, in the order the bands appear in that image. The array element type will be the union of the types of each band.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------|---------|\n| ImageCollection.toArray`()` | Image |\n\n| Argument | Type | Details |\n|--------------------|-----------------|-------------------------------------------------------------------------------------------------|\n| this: `collection` | ImageCollection | Image collection to convert to an array image. Bands must have scalar values, not array values. |"]]