バージョン (1.51 KB) 作成者: Felix Hebeler
calculates a hillshade for a DEM (matrix)

ダウンロード 4.9K 件

更新 2007/5/7


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.


Felix Hebeler (2022). Hillshade (https://www.mathworks.com/matlabcentral/fileexchange/14863-hillshade), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2006b
Windows macOS Linux
タグ タグの追加

ヒントを与えたファイル: shadem, demViewer

Community Treasure Hunt

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

Start Hunting!