The yimage command is an extension of the existing image command in GNU Octave. It adds 12 new colormap schemes along with an easy to use interface for displaying 2D matrices as color-coded images. In the original image command, to use a different colormap, you had to (1) create a colormap, (2) load the colormap, (3) rescale your matrix so that the min and max values in the matrix is scaled to 1..colormap_size and finally (4) run the image command to display it. The yimage command goes through all these steps automatically. (I just found out that imagesc does steps (3) and (4), with a pre-loaded colormap: see the web board for instructions on how to use these built-in commands without installing yimage.m).
Also check out Kai Habel's page and for an extensive collection of colormap generators he wrote and also Etienne Grossmann's page for other collection of octave code. These could be used with imagesc.
Examples of the use of different colormaps with the yimage command in Octave are shown below. The images were generated from James Bednar's LISSOM orientation map data. The orientaiton map in the 12 different color schemes are shown, with the color-code bar on the bottom of each image.
![]()
hsvmap
|
![]()
wackymap
|
![]()
wackymap2
|
![]()
graymap
|
![]()
graymap2
|
![]()
graymap3
|
![]()
hotmap
|
![]()
hotmap2
|
![]()
hotmap3
|
![]()
coolmap
|
![]()
coolmap2
|
![]()
coolmap3
|
[Download] yimage source code (yimage-1.3.tar.gz. yimage-1.3.tar.Z).
[README] Read the README file for yimage-1.3.
visitors since Feb 6 2000.