|
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 7.3 (R2006b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (4) |
| 03 May 2007 |
Andrew Stevens
|
|
|
| 05 May 2007 |
Felix Hebeler
|
|
|
| 13 Mar 2008 |
Giuliano Langella
|
|
|
| 22 Aug 2008 |
Evana Rosylee
|
|
|
| Updates |
| 04 May 2007 |
Update to set hillshade 0 for values <0.
Include example. |
| 07 May 2007 |
Changed calculation to use GRADIENT function instead of nlfilter. Increases calculation speed by factor 30 and does not need ImageProcessing TB. |
| 07 May 2007 |
fixed small bug in the options parsing, clearified help. |
|
Contact us at files@mathworks.com