matlab 裁剪tif文件
对图像(tif格式)进行裁剪函数:function newpic = croptif(path,lon1,lat1,lon2,lat2)% path为图片绝对路径,lon1,lat1为裁剪图片左上角经纬度,lon2,lat1为新图右下角经纬度[A,R] = geotiffread(path);a = (lon1-R.LongitudeLimits(1,1))./R.CellExtentInLongitude+1;b = (R.LatitudeLimits(1,2)-lat1)./R.CellE
原创
2020-05-18 10:20:27 ·
4438 阅读 ·
2 评论