本文簡要介紹 python 語言中 arcgis.raster.functions.mosaic_rasters
的用法。
用法:
arcgis.raster.functions.mosaic_rasters(rasters, mosaic_type='BLEND')
返回:
應用了函數的輸出柵格。
mosaic_rasters 函數使用多個圖像創建單個鑲嵌圖像。當圖像之間存在重疊時,您可以選擇多種方法來確定顯示圖像的優先級。
該函數的參數如下:
Parameter
Description
rasters
Raster
/ImageryLayer
對象所需的列表。mosaic_type
可選字符串。當兩個或多個圖像的部分重疊時,請解決任何衝突。選項包括以下內容:
“FIRST” - 顯示重疊給定區域的圖像列表中第一個圖像的像素。
“LAST” - 顯示重疊給定區域的圖像列表中最後一個圖像的像素。
“MIN” - 顯示所有重疊層的最低值像素。使用此選項,您無法保證在重疊區域中僅顯示一個圖像的像素,而是顯示所有潛在圖層的組合。
“MAX” - 顯示所有重疊層的最高值像素。使用此選項,您無法保證在重疊區域中僅顯示一個圖像的像素,而是顯示所有潛在圖層的組合。
“MEAN” - 計算並顯示重疊像素的平均值。
“BLEND” - 計算並顯示重疊像素的平均值,方法是為靠近相鄰圖像的像素賦予更大的權重,從而輸出更平滑的圖像。這是默認設置。
例子:
# Usage Example 1: mosaic two rasters and display the pixels form the first raster in the list of rasters overlapping a given area. mosaiced_op = mosaic_rasters([ras1, ras2], mosaic_type="FIRST")
相關用法
- Python ArcGIS mosaic_image用法及代碼示例
- Python ArcGIS mod用法及代碼示例
- Python ArcGIS med用法及代碼示例
- Python ArcGIS minority用法及代碼示例
- Python ArcGIS minus用法及代碼示例
- Python ArcGIS merge_layers用法及代碼示例
- Python ArcGIS majority用法及代碼示例
- Python ArcGIS merge_multidimensional_rasters用法及代碼示例
- Python ArcGIS max用法及代碼示例
- Python ArcGIS mean用法及代碼示例
- Python ArcGIS min用法及代碼示例
- Python ArcGIS manage_multidimensional_raster用法及代碼示例
- Python ArcGIS power用法及代碼示例
- Python ArcGIS APIKeyManager.get用法及代碼示例
- Python ArcGIS KnowledgeGraph.named_object_type_delete用法及代碼示例
- Python ArcGIS ContentManager.unshare_items用法及代碼示例
- Python ArcGIS ImageryLayer.thumbnail用法及代碼示例
- Python ArcGIS FormFieldElement用法及代碼示例
- Python ArcGIS Geometry.true_centroid用法及代碼示例
- Python ArcGIS Site.delete用法及代碼示例
- Python ArcGIS GeoAccessor.bbox用法及代碼示例
- Python arcgis.apps.hub.Initiative.update用法及代碼示例
- Python ArcGIS generate_service_areas用法及代碼示例
- Python ArcGIS build_overview用法及代碼示例
- Python ArcGIS RunInterval用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.raster.functions.mosaic_rasters。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。