Be the first to rate this file! 129 downloads (last 30 days) File Size: 1.76 KB File ID: #25691

imshade

by Kelsey Jordahl

 

30 Oct 2009 (Updated 03 Nov 2009)

Code covered by BSD License  

Plot shaded relief, optionally using simulated lighting direction

Download Now | Watch this File

File Information
Description

IMSHADE will plot a matrix representing topography as a 3-component color image, with intensity proportional to the magnitude of the topographic slope of each pixel. Optionally, it can take an argument for lighting angle to use the directional slope.

The current colormap will be used, but future changes in the colormap will not alter the image, since it is now displayed as RGB derived from the colormap and shading.

Nondirectional shading usually scales well, though it is not very robust to spikes in the topographic gradient. The normalization used for directional shading does not always yield satisfactory results and may benefit from some tweaking.

Attached screenshot shows a seamount plotted with IMAGESC (no shaded relief) and with IMSHADE.

MATLAB release MATLAB 7.7 (R2008b)
Zip File Content  
Other Files imshade.m,
license.txt
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
02 Nov 2009 Gary

 "IMSHADE will plot a matrix representing topography as a 3-component color image, with intensity proportional to the magnitude of the topographic slope of each pixel. Optionally, it can take an argument for lighting angle to use the directional slope."

In this case, a picture is worth a thousand words. You should include an example output, as many other File Exchange submissions have done.

Please login to add a comment or rating.
Updates
03 Nov 2009

Add a screenshot

03 Nov 2009

Attach corrected screenshot (previous version had incorrect latitude and longitude labels)

Tag Activity for this File
Tag Applied By Date/Time
map Kelsey Jordahl 30 Oct 2009 13:17:44
mapping Kelsey Jordahl 30 Oct 2009 13:17:44
color Kelsey Jordahl 30 Oct 2009 13:17:44
earth science Kelsey Jordahl 30 Oct 2009 13:17:44
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com