ee.ImageCollection.cast
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
برخی یا همه باندهای هر تصویر را در یک ImageCollection به انواع مشخص شده ارسال می کند.
استفاده | برمی گرداند | ImageCollection. cast (bandTypes, bandOrder) | ImageCollection |
استدلال | تایپ کنید | جزئیات | این: collection | ImageCollection | مجموعه تصویر برای بازیگران. |
bandTypes | فرهنگ لغت | فرهنگ لغت از نام گروه تا انواع گروه. انواع می توانند PixelType یا رشته باشند. رشته های معتبر عبارتند از: 'int8'، 'int16'، 'int32'، 'int64'، 'uint8'، 'uint16'، 'uint32'، 'byte'، 'short'، 'int'، 'long'، 'float' و 'double'. باید شامل تمام باندهای موجود در هر تصویری در مجموعه باشد. اگر این شامل باندهایی باشد که قبلاً در یک تصویر ورودی نیستند، آنها به عنوان نوارهای شفاف به تصویر اضافه می شوند. |
bandOrder | فهرست کنید | لیستی که ترتیب باندها را در نتیجه مشخص می کند. باید با کلیدهای bandTypes مطابقت داشته باشد. |
،برخی یا همه باندهای هر تصویر را در یک ImageCollection به انواع مشخص شده ارسال می کند.
استفاده | برمی گرداند | ImageCollection. cast (bandTypes, bandOrder) | ImageCollection |
استدلال | تایپ کنید | جزئیات | این: collection | ImageCollection | مجموعه تصویر برای بازیگران. |
bandTypes | فرهنگ لغت | فرهنگ لغت از نام گروه تا انواع گروه. انواع می توانند PixelType یا رشته باشند. رشته های معتبر عبارتند از: 'int8'، 'int16'، 'int32'، 'int64'، 'uint8'، 'uint16'، 'uint32'، 'byte'، 'short'، 'int'، 'long'، 'float' و 'double'. باید شامل تمام باندهای موجود در هر تصویری در مجموعه باشد. اگر این شامل باندهایی باشد که قبلاً در یک تصویر ورودی نیستند، آنها به عنوان نوارهای شفاف به تصویر اضافه می شوند. |
bandOrder | فهرست کنید | لیستی که ترتیب باندها را در نتیجه مشخص می کند. باید با کلیدهای bandTypes مطابقت داشته باشد. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eCasts image bands within an ImageCollection to specified data types like 'int8', 'float', etc., ensuring uniformity across images.\u003c/p\u003e\n"],["\u003cp\u003eRequires a dictionary mapping band names to desired types and a list defining the output band order.\u003c/p\u003e\n"],["\u003cp\u003eThe process adds any new bands specified in the dictionary as transparent bands to images lacking them.\u003c/p\u003e\n"],["\u003cp\u003eInput band types and order must encompass all existing bands within the ImageCollection to avoid errors.\u003c/p\u003e\n"]]],[],null,["# ee.ImageCollection.cast\n\nCasts some or all bands of each image in an ImageCollection to the specified types.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|----------------------------------------------|-----------------|\n| ImageCollection.cast`(bandTypes, bandOrder)` | ImageCollection |\n\n| Argument | Type | Details |\n|--------------------|-----------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `collection` | ImageCollection | The image collection to cast. |\n| `bandTypes` | Dictionary | A dictionary from band name to band types. Types can be PixelTypes or strings. The valid strings are: 'int8', 'int16', 'int32', 'int64', 'uint8', 'uint16', 'uint32', 'byte', 'short', 'int', 'long', 'float', and 'double'. Must include all bands already in any image in the collection. If this includes bands that are not already in an input image, they will be added to the image as transparent bands. |\n| `bandOrder` | List | A list specifying the order of the bands in the result. Must match the keys of bandTypes. |"]]