shadem
shadem adjusts lighting to give a sense of depth to the display of gridded elevation data. Although it was designed for use with the Matlab's Mapping Toolbox, this function can just as easily be used for pcolor or surface plots of any type.
Matlab's Mapping Toolbox is packaged with several sub-par functions that are intended to create shaded relief maps, but the built-in shading functions are difficult to use, create unattractive maps, and cannot be used with a colorbar.
Where surflsrm, surflm, shaderel, and meshlsrm each require an iterative process of guess-and-check to determine visually appealing lighting azimuth and elevation, shadem allows interaction with the map from the mouse and keyboard: Sunlight comes from wherever you click on your map, and intensity of the shading effect can be adjusted by pressing the up and down keys.
See the included shadem_documentation example for usage notes.
Citar como
Chad Greene (2024). shadem (https://www.mathworks.com/matlabcentral/fileexchange/49065-shadem), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Mathematics and Optimization > Mapping Toolbox > Geometric Geodesy >
- Radar > Mapping Toolbox > Geometric Geodesy >
Etiquetas
Agradecimientos
Inspirado por: Hillshade, imshade, esri hillshade algorithm, DEM: Shaded relief image plot (digital elevation model)
Inspiración para: How to drape Landsat images over Bedmap2 topography
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
shadem/
shadem/html/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.7.0.0 | Version 6: Sunlight color may now be toggled via the user interface. |
||
1.6.0.0 | Version 5: Added 'sun' option to mimic the color of sunlight as it changes throughout the day. |
||
1.5.0.0 | Minor documentation edits. |
||
1.4.0.0 | Fixed a typo in the documentation. |
||
1.3.0.0 | Fixed a typo in the documentation. |
||
1.2.0.0 | Name change from hillshader to shadem. Minor edits to documentation. |
||
1.1.0.0 | Version 2: added a 'reset' option and edited documentation. |
||
1.0.0.0 |