科学网

 找回密码
  注册

tag 标签: mosaic

相关帖子

版块 作者 回复/查看 最后发表

没有相关内容

相关日志

ENVI扩展工具:Mosaic_Batch(大数据量镶嵌)
YF2015 2016-5-2 19:59
Mosaic_Batch 工具能是进行海量数据的镶嵌,该工具在 ENVI4.8 和 ENVI5.0 下均可用,工具也可设置 See_Through Value( 忽略值 ) 。 工具下载地址: http://vdisk.weibo.com/s/rHpze 源代码下载地址: http://vdisk.weibo.com/s/rHfAI 安装方法 : 这个扩展工具适用于 ENVI5 标准版和经典版本,同时也适用于 ENVI 4.8 版本。将 Mosaic_Batch.sav 放在以下指定路径下即可。 Ø ENVI 4.8 Windows: C:\Program Files\ITT\IDL\IDL80\products\envi48\save_add Ø ENVI 5.0 ( 在经典界面中出现菜单 ) Windows: C:\Program Files\Exelis\ENVI50\classic\save_add\ Ø ENVI 5.0 (标准版) - Windows: C:\Program Files\Exelis\ENVI50\extensions\ 重新启动 ENVI 。 安装好工具后,通过以下方式找到相应功能菜单: ( 1 )在 ENVI 4.8 和 ENVI 5.0 (经典版)中,在菜单 'Basic Tools - Mosaicing' 下即可找到 Mosaic Batch ( 2 )在 ENVI5.0 标准版中在工具箱 'Extensions' 下找到 Mosaic_Batch 工具。 工具使用: ( 1 )选择镶嵌文件和保存结果后,弹出设置忽略值对话框(图 1 ),可以填写忽略值,默认是 -999.000 。 图 1 See through value ( 2 )我们利用该镶嵌工具帮助用户完成了海量数据的镶嵌。 图 2 是 1900 景 Aster DEM 数据, 30 米分辨率,数据量达到 60G 。 ENVI 仅用了 1 个小时就完成了这些数据的镶嵌。 图 3 是 4000 多幅 ETM 数据的镶嵌,数据量达到 340G ,仅仅用了了一下午时间就完成了镶嵌。 图 2 1900 幅 ASTER 镶嵌 图 3 4000 多幅 ETM 镶嵌
个人分类: 遥感|3103 次阅读|0 个评论
[转载]The Philosophy of Science
semicol 2016-2-4 14:11
 From: http://www.haystack.mit.edu/edu/pcr/MOSAIC/ 1.The universe behaves in a consistent and predictablemanner, independent of whom the observer is or where the observer happens tobe. Physics is the branch of science which seeks to study, understand, and quantify the interaction of all matter and energy. 2.We study matter and energy through observation. Data collection and analysis reveal simple relationships between measurable physical quantities or variables. These observations become postulates, theories, or laws of science. 3.We use the language of mathematics to express therelationships among variables as formal equations. These equations are constantly being tested in every observable event and experiment. 4.If a conflict arises between an observed fact and theory,we trust our observations and seek to discover why the conflict exists. Ifnecessary, the scientific community must modify the theory to match trusted,repeatable observations. 5.We can solve physics problems using a standard methodology. This Appendix has suggested an 8-step problem solving method whichcan be applied to any given problem. When executed properly, there should be a high degree of confidence in the solution obtained from such a method.   
851 次阅读|0 个评论
Matlab: Enhanced Mosaic Operation
lixujeremy 2015-10-18 22:40
Summary 前贴 已经介绍同等尺寸的若干图片镶嵌操作的方法,本帖代码将比之前贴更加强大。若干图片还是要求具有同样的尺寸,并含有相同的波段数量。 Code Specification 代码设定在前端这些内容, N=2; 定义输出列数 color= ; 定义输出背景颜色 blkimg.width =0.08; 定义插入图片之间水平方向间距,归一化为图片的 width blkimg.height =0.12; 定义插入图片之间垂直方向间距,归一化为图片的 height edgimg.width =0.5; 定义图片与边缘之间水平方向间距,归一化为图片的 width edgimg.height=0.2; 定义图片与边缘之间垂直方向间距,归一化为图片的 height 如果 blkimg.width 、 blkimg.height 、 edgimg.width 、 edgimg.height 四变量全部赋值为 0 ,此时结果将与 前贴 代码结果一致,不留出任何空白。比之 前贴 方法二同样具有优势,虽然都可以留出间距空白,但前贴方法对图像信息有损失,本帖代码没有损失。 Fig. 1 Acknowledgements These images used here are all from MakotoChannel Google+ , she is a dancer, special thanks to the nic e lovely Japanese girl. MatMosaic.rar References Matlab: 图片镶嵌 .
个人分类: Matlab|2561 次阅读|0 个评论
[转载]Arcpy: Mosaic To New Raster (Data Management)
lixujeremy 2015-9-3 09:46
Summary 影像镶嵌处理是遥感等空间数据处理的基本环节,提供全覆盖的研究区影像数据。开贴记录 Arcpy 镶嵌多幅影像方法。 Usage 1 输入影像必须全部是被镶嵌之影像,各幅影像包含相同的波段及数据类型( bit depth )。 2 镶嵌结果应设置数据类型,否则默认类型是 8 bit ,这可能并不正确。 3 支持众多种类的输出格式文件。 4 遗憾的是,代码不能设定背景数值(by default 32767)。 附上代码( MosaicRas.rar )。 References SRTM Data . Mosaic To New Raster (Data Management) .
个人分类: Python|2337 次阅读|0 个评论
Matlab:不同Size图片镶嵌
lixujeremy 2014-12-26 15:49
开贴介绍不同 Size 图片的镶嵌方法,不同 Size 的图片是指图片的行列不相同的多个图片。 以两个不同 Size 的图片为例,运用代码实现图片在右侧或下方自动调整后的镶嵌操作, 1.jpg 有 817 行 815 列, 2.jpg 有 799 行 800 列。我们的目标是实现图 1 的两种效果。镶嵌过程中 1.jpg 的 Size 不变,但 2.jpg 依情况有对应的调整。 图 1 函数 imresize() 操作 2.jpg ,依据镶嵌的行或列调整 2.jpg 。以水平镶嵌( keyword 控制)为例,根据 1.jpg 有 817 行而得调整之后的 2.jpg 的伸缩 Scale 是 1.0225 ,伸缩后 Size 是 817 × 819 。代码处理结果如图 2 和 3 ,毫无违和。 图 2 图 3 附上代码及测试数据( merge.rar )。 See Also Matlab :图片镶嵌 ; Matlab : ResizeImage ;
个人分类: Matlab|3525 次阅读|0 个评论
Matlab:图片镶嵌
热度 2 lixujeremy 2014-10-26 08:25
这个小程序面向图片的镶嵌,将图片无缝镶嵌在一起,组成一张新的图片。 图片的要求:行列以及波段全部一致,代码中的 N 定义输出结果的列数。测试结果如图 1~4 ,一列、两列、三列和一排妹子。 图 1 图 2 图 3 图 4 最近发现一个很好函数,能够定义图片之间的距离,对之前的处理( mosaic.m )是一种补充,程序见 imsShow.m ,定义图片之间的距离之后的结果如图 5 。 图 5 附上代码( mosaic.rar , Updated by LI Xu on 21 May 2015 )。
个人分类: Matlab|4561 次阅读|2 个评论
ArcGIS:遥感影像无缝镶嵌
热度 3 lixujeremy 2014-9-15 13:36
问题描述:两张 TM 遥感数据( 7 通道), ArcGIS 和 ENVI 镶嵌操作的结果都不能去除黑边的影响,如图 1 。 图 1 解决方法: ENVI5.1 新推出 Seamless Mosaic 模块, 这个模块应该可以解决上述的问题 ( Seamless Mosaic图像镶嵌.pdf ),不过,这个模块对多数用户都没有授权,暂时还不可用。 另一个方法,将遥感数据的黑边转换为 NoData 之后,再进行镶嵌操作,可以实现遥感影像的无缝镶嵌。以下操作在 ArcGIS10.2 环境下运行。 ( 1 )打开 ArcMap ,加载数据( N.img 和 E.img )。 ( 2 )将黑边转换为 NoData 。打开 ArcToolbox — Data Management Tools — Raster — Raster Dataset — Copy Raster ,在 Copy Raster 对话框中,依次设定输入栅格、输出位置和忽略像元数值,本例中黑边的像元值是 0 ,所以就在 Ignore Background Value 当中键入 0 ,如图 2 ,再单击 OK 运行。另一张影像的操作过程也是如此。 图 2 ( 3 )镶嵌。打开 Data Management Tools — Raster — Raster Dataset — Mosaic To New Raster ,在 Mosaic To New Raster 对话框中按照要求设置输入栅格、输出位置和名称、输出波段数,如图 3 ,最后单击 OK 运行,结果如图 4 ,镶嵌图像祛除黑边的影响。 图 3 图 4 注意: NoData 在 ArcGIS 中不参与任何运算。
个人分类: GIS|27351 次阅读|5 个评论
利用MRT进行多年LAI数据(MOD15A2)拼接和投影转换
peluo 2013-5-7 14:33
最近需要处理连续10年的MODIS LAI产品数据(MOD15A2)。根据自己的需求,写了一个MS-DOS批处理小程序,主要解决的问题是:YEAR和DOY两重循环,并将YEAR和DOY连接成YEAR+DOY的形式(如2001001)用以搜索符合条件的待拼接文件。 需要注意的地方(代码中红色标注处): 1、用set设置数据文件夹环境变量时,等号的前后都不能出现空格。如果等号前面有空格,则环境变量名称变为“MRTDATADIR ”,如果等号后有空格,则数据文件夹路径前面多出空格会导致MRT工具找不到相关数据文件。 2、DOY的设置采用了“曲线救国”方案,即先设置为10001的形式,然后截取最后三个字符作为标准DOY。 3、DOS下的字符截取操作:%DOY:~-3%表示截取DOY变量的最后三个字符,等效于%DOY:~4,3%,表示从DOY变量的第5个字符开始截取3个字符。 4、进行YEAR的循环时需要对DOY进行初始化。 代码如下: @echo off rem **This is a MS-DOS batch file to do multi-yearly mosaicing and resampling preprocessing by using MRT rem **author: pengbin, institute of remote sensing and digital earth, CAS rem **Memo: developed at May 7th, 2013 rem **Set the MRTDATADIR environmental var to the MRT data directory. set MRTDATADIR=D:\MOD15A2_h24-26_v4-5 rem **set batch data start time set /a YEAR = 2001 set /a DOY = 10001 rem **set batch data end time set /a ENDYEAR = 2010 set /a ENDDOY = 10365 :start if %YEAR% leq %ENDYEAR% (goto ORDER1) else exit :ORDER1 if %DOY% leq %ENDDOY% (goto ORDER2) else ( set /a YEAR = %YEAR% +1 set /a DOY = 10001 goto start ) :ORDER2 set /a DAY = %YEAR%%DOY:~-3% rem **save the file name into a notepad dir %MRTDATADIR%\*%DAY%.*.hdf/a/b/s %MRTDATADIR%\MOSAICINPUT.TXT rem **execute mosaic mrtmosaic.exe -i %MRTDATADIR%\MOSAICINPUT.TXT -o %MRTDATADIR%\MOSAIC_TMP.hdf rem **execute resample resample.exe -p %MRTDATADIR%\MOD15A2.prm -i %MRTDATADIR%\MOSAIC_TMP.hdf -o %MRTDATADIR%\%DAY%.tif set /a DOY = %DOY% + 8 goto ORDER1
个人分类: 遥感|8394 次阅读|0 个评论

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-29 19:46

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部