matlab geotiff,(Not recommended) Read GeoTIFF file[通俗易懂]

matlab geotiff,(Not recommended) Read GeoTIFF file[通俗易懂]geotiffread(Notrecommended)ReadGeoTIFFfilegeotiffreadisnotrecommended,exceptwhenreadingaGeoTIFFfilefromaURLorwhenreadingmultipleimagesfromthesamefile.Inothersituations,user…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE稳定放心使用

geotiffread

(Not recommended) Read GeoTIFF file

geotiffread is not recommended, except when reading a GeoTIFF

file from a URL or when reading multiple images from the same file. In other situations,

use readgeoraster instead. For more information, see Compatibility Considerations.

Description

[A,R] = geotiffread(filename)

reads a georeferenced grayscale, RGB, or multispectral image or data grid from the

GeoTIFF file specified by filename into A

and creates a spatial referencing object, R.

[X,cmap,R]

= geotiffread(filename)

reads an indexed image into X and the associated colormap into

cmap, and creates a spatial referencing object,

R.

[A,refmat,bbox]

= geotiffread(filename)

reads a georeferenced grayscale, RGB, or multispectral image or data grid into

A, the corresponding referencing matrix into

refmat, and the bounding box into bbox.

X, the associated colormap into

cmap, the referencing matrix into

refmat, and the bounding box into

bbox. The referencing matrix must be unambiguously defined by

the GeoTIFF file, otherwise it and the bounding box are returned empty.

[___] = geotiffread(url)

reads the GeoTIFF image from a URL.

[___] = geotiffread(___,idx)

reads one image from a multi-image GeoTIFF file or URL.

Examples

Read and Display the Boston GeoTIFF Image

[boston,R] = geotiffread(‘boston.tif’);

figure

mapshow(boston,R);

axis image off

cf58e00b1d87ddd52dee48593dfc71f8.gif

boston.tif copyright © GeoEye™, all rights reserved.

Input Arguments

filename — Name of GeoTIFF file

character vector | string scalar

Name of the GeoTIFF file, specified as a string scalar or character

vector. Include the folder name in filename or place the

file in the current folder or in a folder on the MATLAB® path. If the named file includes the extension

.TIF or .TIFF (either upper- or

lowercase), you can omit the extension from

filename.

idx — Index of image in GeoTIFF file

1 (default) | positive integer

Index of image in GeoTIFF file, specified as a positive integer. For

example, if idx is 3,

geotiffread reads the third image in the file. By

default, idx indexes to the first image in the

file.

url — Internet URL

character vector | scalar string

Internet URL, specified as a string scalar or character vector. The URL

must include the protocol type (e.g., “https://”).

Output Arguments

A — Georeferenced image or data grid

M-by-N numeric matrix | M-by-N-by-P

numeric array

Georeferenced image or data grid, returned as one of the following:

An M-by-N numeric matrix

when the file contains a grayscale image or data grid

An

M-by-N-by-P

numeric array when the file contains a color image,

multispectral image, hyperspectral image, or data grid

The class of A depends on the storage class of the

pixel data in the file, which is related to the

BitsPerSample property as returned by the imfinfo function.

R — Spatial referencing object

geographic raster reference object | map raster reference object

Spatial referencing object, returned as one of the following.

A geographic raster reference object of type GeographicCellsReference or GeographicPostingsReference. This object is

returned when the image or data grid is referenced to a

geographic coordinate system.

A map raster reference object of type MapCellsReference or

MapPostingsReference. This object is returned when the

image or data grid is referenced to a projected coordinate

system.

X — Indexed image

M-by-N numeric matrix

Indexed image, returned as an M-by-N

numeric matrix.

cmap — Color map

c-by-3 numeric matrix

Color map associated with indexed image X, specified

as an c-by-3 numeric matrix. There are

c colors in the color map, each represented by a red,

green, and blue pixel value. Colormap values are rescaled into the range

[0,1].

refmat — Referencing matrix

3-by-2 numeric matrix | []

Referencing matrix, returned as 3-by-2 numeric matrix that transforms

raster row and column indices to or from geographic coordinates according

to:

[lon lat] = [row col 1] * refmat

refmat defines a (non-rotational, non-skewed)

relationship in which each column of the data grid falls along a meridian

and each row falls along a parallel. refmat must be

unambiguously defined by the GeoTIFF file, otherwise it and the bounding

box, bbox, are returned empty.

Data Types:double

bbox — Bounding box

2-by-2 numeric matrix | []

Bounding box, returned as a 2-by-2 numeric matrix that specifies the

minimum (row 1) and maximum (row 2) values for each dimension of the image

data in the GeoTIFF file. bbox is returned empty if

refmat is ambiguously defined by the GeoTIFF

file.

Data Types:double

Tips

geotiffread imports pixel data using the TIFF-reading

capabilities of the MATLAB function imread and likewise shares any

limitations of imread. Consult the imread

documentation for information on TIFF image support.

Compatibility Considerations

geotiffread is not recommended

Not recommended starting in R2020a

geotiffread is not recommended, except when reading a GeoTIFF

file from a URL or when reading multiple images from the same file. In other

situations, use readgeoraster instead. There are no plans to remove

geotiffread.

Unlike geotiffread, which returns a referencing matrix in

some cases, the readgeoraster function returns a raster

reference object. Reference objects have several advantages over referencing matrices.

Unlike referencing matrices, reference objects have properties that

document the size of the associated raster, its limits, and the

direction of its rows and columns. For examples of reference object

properties, see GeographicCellsReference and

MapPostingsReference.

You can manipulate the limits of rasters associated with reference

objects using the geocrop or mapcrop functions.

You can manipulate the size and resolution of rasters associated with

reference objects using the georesize or mapresize functions.

This table shows some typical usages of geotiffread and how

to update your code to use readgeoraster instead. Unlike

geotiffread, the readgeoraster

function requires you to specify a file extension. For example, use [Z,R] =

readgeoraster(‘boston.tif’).

Not RecommendedRecommended[A,R] = geotiffread(filename);[A,R] = readgeoraster(filename);

[X,cmap,R] = geotiffread(filename);[X,R,cmap] = readgeoraster(filename);

[A,refmat,bbox] = geotiffread(filename);[A,R] = readgeoraster(filename);

xlimits = R.XWorldLimits;

ylimits = R.YWorldLimits;

bbox = [xlimits’ ylimits’];

Introduced before R2006a

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/188821.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • plot函数的用法_ezplot函数

    plot函数的用法_ezplot函数matlab的图形绘制是非常重要的一种功能,所有关于数据分析挖掘方面一定会用到此项功能。在我们开始第三章数据可视化之前,必须先把plot函数必须弄得清清楚楚才行,下面让我们看看关于它的一切吧!一.plot首先,plot有几种形式(1)plot(X,Y):创建数据Y相对于中相应值X的二维折线图其中,若X,Y是向量,长度必须相等,图是Y对X的若X,Y是矩阵…

    2022年10月11日
    0
  • linux jdk安装步骤(下载安装jdk)

    1.linux虚拟机需要先连接互联网2.命令行下载jdk安装包3.jdk安装包解压安装及环境配置4.直接在线安装jdk并配置运行环境。1.查看yum库中都有哪些jdk版本(暂时只发现了openjdk)[root@localhost~]#yumsearchjava|grepjdk2.选择版本,进行安装//选择1.7版本进行安装[root@localhost~]#yuminstalljava-1.7.0-openjdk[root@localhost~]#yumins

    2022年4月11日
    73
  • 4G演进之路:FDD还是TDD?[通俗易懂]

    4G演进之路:FDD还是TDD?[通俗易懂]达到更高频谱利用率、覆盖率,同时保证多媒体应用的QoS服务质量,已经成为第四代蜂窝4G网络的挑战和目标。在4G系统里,有许多关于物理层和多接入以提高频谱利用率方面的研究,以支持高达100Mbps甚至更高的数据传输速率。例如,正交频分多址OFDMA、MIMO天线,以及跨层资源优化,被认为是4G系统中的核心技术,并同时在频率选择的衰落信道中提供高可靠通信。  另一方面,4G系统双工方式的选择,是F

    2022年5月25日
    63
  • 怎么从安卓设备转移数据到苹果_换手机了数据怎么办?这样做安卓、苹果手机数据一键转移…

    怎么从安卓设备转移数据到苹果_换手机了数据怎么办?这样做安卓、苹果手机数据一键转移…(2)借助iCloud云备份①确保手机已经连接WiFi,然后在手机“设置”中,依次点击“AppleID——iCloud——iCloud云备份”,开启iCloud云备份功能,然后点击“立即备份”。②接下来就是要将iCloud云备份上的数据下载到新手机上了。如何已经设置了新手机,那需要先抹掉它。依次点击“设置——通用——还原——抹掉所有内容和设置”即可。③手机开机后,往下进行操作,直到看到“应用与数…

    2022年5月26日
    48
  • 4k纸是几厘米乘几厘米_4k素描纸是多大? 是几乘几的?

    4k纸是几厘米乘几厘米_4k素描纸是多大? 是几乘几的?展开全部4K的尺寸:35cm*38cm目前有“国际大度”和“国际正度”的两种标准。国际大度四开纸的长宽为:58×62616964757a686964616fe58685e5aeb93133336566613743cm;国际正度四开纸的长宽为:53×37.5cm。通常使用国际大度标准为多,整数计算长:53cm,宽:38cm。素描约4K,8K,32K这些是指对应的纸张的大小。4K的尺寸:35cm*38…

    2022年6月20日
    84
  • 什么是配额_配额抽样的计算

    什么是配额_配额抽样的计算xx局点FusionCloud6.3 type1 计算配额失败问题

    2022年4月20日
    40

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号