Hillshade

calculates a hillshade for a DEM (matrix)
5,2K téléchargements
Mise à jour 7 mai 2007

Aucune licence

Function to calculate hillshade for a digital elevation model. Derives slope and aspect in radias to calculate shading value between 0 and 255 using a given lighting angle and altitude.

Altitude (angle above ground) and angle (direction/aspect) of lightsource can be given via args.

Derived using ESRIs hillshade algorithm, but uses simple GRADIENT function instead of Horns algorithm for slope calculation - factor 30 more efficient & no need for IP TB. (Thanks to Andrew Stevens)

Pls leave you feedback/rate.

Citation pour cette source

Felix Hebeler (2026). Hillshade (https://fr.mathworks.com/matlabcentral/fileexchange/14863-hillshade), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2006b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Remerciements

A inspiré : shadem, demViewer

Version Publié le Notes de version
1.0.0.0

fixed small bug in the options parsing, clearified help.