Main Content

dn2reflectance

将数字数字转换为反思

D.E.S.cription

例子

newhcube.= dn2refleflectance(hcube的)将高光谱数据多维数据集的像素值从数字数字(DN)转换为反射值。该函数返回一个新的hypercube.数据立方体的对象和像素值是大气(TOA)反射值的顶部。有关TOA反射值的详细信息,请参阅从DNS计算TOA反射值

newhcube.= dn2refleflectance(hcube,'BlockSize',BlockSize.的)指定通过使用名称值对参数的块处理超细数据多维数据集的块大小'blocksize'

该功能将输入图像划分为不同的块,处理每个块,然后连接每个块的处理后输出以形成输出矩阵。高光谱图像是多维数据集,其可以太大而无法完全符合系统存储器。这可能导致系统在运行时耗尽内存dn2reflectance功能。如果您遇到此类问题,请使用此语法执行块处理。

For example,DN2REFLEFLECTANCE(HCUBE,'BLOCKSIZE',[50 50])D.一世vides the input image into non-overlapping blocks of size 50-by-50 and then computes the reflectance values for pixels in each block.

笔记

To perform block processing by specifying the'blocksize'名称值对参数,您必须拥有matlab®R2021A或后续释放。

笔记

这个函数需要Image Processing Toolbox™ Hyperspectral Imaging Library。你可以安装图像处理工具箱高光谱成像库从附加资源管理器。有关安装加载项的更多信息,请参阅获取和管理附加组件

E.xamples

全部收缩

将高光谱数据读入工作区。

hcube = hypercube('eo1h0440342002212110py_cropped.hdr');

使用该确定错误的光谱带号坏乐队parameter in the metadata.

bandnumber = find(〜hcube.metadata.badbands);

R.E.move the bad spectral bands from the data cube.

hcube = removeBands(hcube,'BandNumber',bandNumber);

Convert digital numbers to top of atmosphere (TOA) reflectances. The pixel values in the output data cube are the TOA reflectances.

newhcube = dn2reflexectance(hcube);

在输入和输出反射率数据多维数据集中读取并显示第80个光谱带图像。

inputband = hcube.datacube;反射率= newhcube.datacube;频段= 80;图形子图(1,2,1)ImageC(InputBand(:,:,频带))标题('输入乐队')轴off子图(1,2,2)ImageC(反射带(:,:,频带))标题('反射乐队')轴offcolormap灰色的

Figure contains 2 axes objects. Axes object 1 with title Input Band contains an object of type image. Axes object 2 with title Reflectance Band contains an object of type image.

输入参数

全部收缩

输入高光谱数据,指定为ahypercube.对象。这D.一种T.一种Cube财产T.hehypercube.对象存储高光谱数据多维数据集。这MetaData财产T.hehypercube.目的must contain reflectance gain values.

数据块的大小,指定为正整数的2元素向量。矢量的元素分别对应于每个块中的行数和列数。数据块的大小必须小于输入图像的大小。将高光谱图像分成较小的块,使您可以在不耗尽内存的情况下处理大数据集。

  • 如果是BlockSize.value is too small, the memory usage of the function reduces at the cost of increased execution time.

  • 如果是BlockSize.value is large or equal to the input image size, the execution time reduces at the cost of increased memory usage.

E.xample:'blocksize',[20 20]S.pecifies the size of each data block as 20-by-20.

输出参数

全部收缩

输出超光谱数据,作为a返回hypercube.对象。p一世xel values of the data cube returned at the output specifies the top of atmosphere (TOA) reflectance values.

更多关于

全部收缩

从DNS计算TOA反射值

G一世ven a digital number (DN), the TOA reflectance is computed by using the reflectance gain (R.G一种一世N.)和反射率偏移(R.抵消)数据立方体中的每个光谱频带。

R.E.Flectance ρ λ = D. N. × R. G 一种 一世 N. 的) + R. O. F F S. E. T.

每个光谱频带的反射率增益和反射率偏移值存储在头文件中。

Alternatively, the TOA reflectance values can be estimated from digital numbers (DN) by using these two steps:

  1. 计算数字数字(DN)的辐射值。

    辐射L. λ = D. N. × G 一种 一世 N. 的) + B. 一世 一种 S.

    G一种一世N.λ一种N.D.偏见λ是每个光谱频带的增益和偏移值(λ) 分别。这元数据财产hypercube.对象包含增益和偏移值。

  2. Compute the TOA reflectance values from the radiance values.

    R.E.Flectance ρ λ = π D. 2 L. λ E. S. N. λ θ E.

    D.一世S.T.he earth-sun distance in astronomical units,E.S.你N.λ是每个光谱带的平均太阳辐照度,以及θE.一世S.T.he sun elevation angle.

在R2020B中介绍