Built-in colormaps - image processing, MATLAB in Engineering

Built-in colormaps:

The MATLAB has numerous built-in colormaps which are named; the reference page on colormap shows them. Calling the function colormap without passing any arguments will return the present colormap that by default is one known as the jet.

The following stores the present colormap in a variable map, gets the size of the matrix (that will be the number of rows in this matrix, or in another word the quantity of colors, by 3 columns), and shows the first five rows in this colormap. If the present colormap is the default jet, then this will be the outcome:

>> map = colormap;

>> [r c] = size(map)

r =

       64

c =

       3

>> map(1:5,:)

ans =

0   0   0.5625

0   0   0.6250

0   0   0.6875

0   0   0.7500

0   0   0.8125

Posted Date: 10/22/2012 8:29:10 AM | Location : United States







Related Discussions:- Built-in colormaps - image processing, Assignment Help, Ask Question on Built-in colormaps - image processing, Get Answer, Expert's Help, Built-in colormaps - image processing Discussions

Write discussion on Built-in colormaps - image processing
Your posts are moderated
Related Questions
Plotting File data: It is frequently essential to read data from a file and plot it. Generally, this entails knowing the format of the file. For illustration, let us suppose t

Preallocating a Vector: There are necessarily two programming techniques that can be used to simulate the cumsum function. One technique is to begin with an empty vector and c

Reduced Row Echelon Form: The Gauss Jordan technique results in a diagonal form; for illustration, for a 3 × 3 system: The Reduced Row Echelon Forms take this one step

Displaying expressions: The good-looking function will show such expressions by using exponents; for illustration, >> b = sym('x^2') b = x^2 >> pretty(b)

Reading from a File in a While Loop: Though in most languages the combination of a loop and an if statement would be essential to determine whether or not the elements in a ve

Technique to creating this structure: An alternative technique of creating this structure, that is not as efficient, includes using the dot operator to refer to fields in the

True color matrice: The true color matrices are the other way to represent images. The true color matrices are 3-dimensional matrices. The first two coordinates are the coordi

How can I use the weighted moving average formula in matlab to smooth a column data of 404 values?

Algorithm for subfunction: The algorithm for subfunction askforn is as shown:  Prompt the user for the positive integer n.  Loop to print an error message and reprom

Changing Case: The MATLAB has two functions which convert strings to all uppercase letters, or all lowercase, known as the upper and lower. >> mystring = 'AbCDEfgh';