correctOOB
Syntax
Description
corrects the out-of-band (OOB) effect in the input satellite data by using the sensor's
spectral response characteristics. This method is suitable for OOB correction in
multispectral satellite data.newhcube
= correctOOB(hcube
,spectralResponse
)
Use this function to correct OOB effects over different regions such as clear waters, turbid waters, green vegetation, sand, and soil. This method gives best results if the input data is compensated for Rayleigh and aerosol scattering. To measure the OOB effect on scenes with large water bodies, you must first compute the water leaving radiance spectra from the input satellite data.
[
also returns the relative OOB effect for each spectral band.newhcube
,oobEffect
] = correctOOB(hcube
,spectralResponse
)
[___] = correctOOB(
specifies region mask by using the name-value pair argument hcube
,spectralResponse
,'RegionMask',mask
)'RegionMask'
.
The region mask indicates the homogeneous regions in the input satellite data.
specifies the block size for block processing of the hyperspectral data cube by using the
name-value pair argument newhcube
= correctOOB(___,'BlockSize',blocksize
)'BlockSize'
. You can specify the
'BlockSize'
name-value pair argument in addition to the input arguments
in the previous syntaxes.
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. Hyperspectral 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 correctOOB
function. If you encounter such an issue, perform block
processing by using this syntax.
For example, correctOOB(hcube,spectralResponse,'BlockSize',[50 50])
divides the input image into non-overlapping blocks of size 50-by-50 and then performs
out-of-band correction on each block.
Note
To perform block processing by specifying the 'BlockSize'
name-value
pair argument, you must have MATLAB® R2021a or a
later release.
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™ or MATLAB Mobile™ do not support the library.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b
See Also
dn2radiance
| fastInScene
| hypercube
| rrs