image thumbnail

stretchlim() with NOVALUE

version 1.0.0.0 (1.78 KB) by Seongsu Jeong
An alternative of stretchlim(), which excludes the pixels with specified NOVALUE

35 Downloads

Updated 29 Aug 2016

View License

This is an alternative of stretchlim() included in image processing toolbox. This function determines the lower and upper threshold of the DN with the user-specified NOVALUE excluded. For example, Landsat images distributed by USGS has the void pixels whose DN is 0. They needs to be excluded from the processing because they are not meaningful pixels.
Also, this function excludes the pixels with NaN when the input image is in floating point data, rather than filling them with 0 (so that causing the disruption when determining the threshold)

Cite As

Seongsu Jeong (2022). stretchlim() with NOVALUE (https://www.mathworks.com/matlabcentral/fileexchange/58899-stretchlim-with-novalue), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!