dn2reflectance
Description
converts the pixel values of the hyperspectral or multispectral data from digital number
(DN) to reflectance values. The function returns a new spectral object and the pixel values
of the data are the top of atmosphere (TOA) reflectance values. For details on TOA
reflectance values, see Compute TOA Reflectance values from DNs.newspcube
= dn2reflectance(spcube
)
specifies the block size for block processing of the spectral data. (since R2021a)newspcube
= dn2reflectance(spcube
,BlockSize=blocksize
)
The function divides the input image into distinct blocks,
processes each block, and then concatenates the processed output of each block to form the
output matrix. Spectral images are multi-dimensional data sets that can be too large to fit in
system memory in their entirety. This can cause the system to run out of memory while running
the dn2reflectance
function. If you encounter such an issue, perform block
processing by using this syntax.
For example, dn2reflectance(spcube,BlockSize=[50 50])
divides the
input image into non-overlapping blocks of size 50-by-50 and then computes the reflectance
values for pixels in each block.
Note
This function requires the Hyperspectral Imaging Library for Image Processing Toolbox™. You can install the Hyperspectral Imaging Library for Image Processing Toolbox from Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
The Hyperspectral Imaging Library for Image Processing Toolbox requires desktop MATLAB®, as MATLAB Online™ and MATLAB Mobile™ do not support the library.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2020bSee Also
dn2radiance
| radiance2Reflectance
| empiricalLine
| iarr
| sharc
| hypercube
| multicube