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
Program to Counting in a while loop: The script initializes variable counter to 0. Then, in the while loop action, each and every time the user successfully enter a number, th

Illustration of Gauss elimination: For illustration, for a 2 × 2 system, an augmented matrix be: Then, the EROs is applied to obtain the augmented matrix into an upper

Indexing into Vectors of structures: Frequently, when the data structure is a vector of structures, it is essential to iterate through the vector in order by various fields. F

Forward elimination: In forward elimination, we want to obtain a 0 in the a 21 position. To accomplish this, we can alter the second line in the matrix by subtracting from it



Function cirarea - Anonymous functions: The function handle name is cirarea. The one argument is passed to the input argument radius. The body of the function is an expression

Forward substitution: The Forward substitution (done methodically by first getting a 0 in the a 21 place, and then a 31 , and lastly a 32 ): For the Gauss technique,

IS Functions in Matlab: There are many functions which are built into MATLAB which test whether or not something is true; these function names start with the word is. As these

Example of Plotting from a Function: For illustration, the function can be called as shown below:      >> y = [1:2:9].^3      y =     1  27  125  343  729