Blog

How to Create Custom Colormaps in Digital Micrograph

The default colormap in Digital Micrograph is greyscale, but different applications or communities ofter use other colour look-up tables (CLUT) to highlight certain features or present data more artistically. You can see your colour scale choices in DM by right-clicking on an image and selecting “ImageDisplay…” or by pressing ctrl+D, then selecting ‘Display’ > ‘Color’, you will see something like this:

DM Colormap

Astronomical Image Stabilisation in MatLab

Terrestrial telescopes have the unfortunate drawback of having to image through several miles of atmosphere. This can lead to ‘atmospheric distortions’ causing images to appear ‘wobbly’. This effect is most apparent in movies recorded through telescopes.

Here is an example movie of the moon with some common issues including; camera-motion, camera-shake and atmospheric distortion. Movie is best viewed fullscreen, movie credit: DecemberEves.

Now we will correct these issues using the Smart Align registration software. First the video was imported into MatLab, converted to grey-scale and sub-sampled to keep every 10th frame leaving 75 frames.

How to Create & View 3D Graphs in MatLab (with 3D glasses)

Red Blue 3D Glasses

MatLab already has the ability to produce three-dimensional (3D) visualisations of array data such as ‘surf’ or ‘mesh’, but these still produce flat two-dimensional figures. Sometimes the best way to interpret these data is in genuine 3D with depth. I needed this capability for my own research and finding no clues online I’ve written some code myself.

This post will show you how to create your own figures in 3D (sometimes called anaglyphs) that can be saved, shared and viewed with 3D glasses. For this post I’ll be using red/blue 3D glasses (with red over the left eye) and the MatLab ‘peaks’ example data set.