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
Function cellplot - Cell array: The function cellplot place a graphical display of the cell array in a figure Window; though, it is a high-level view and fundamentally just di

Function strncmp: The function strncmp compares only the first n characters in the strings and ignores the rest. The initial two arguments are strings to compare, and third ar


Matrix operations: There are some common operations on matrices. The operators which are applied term by term, implying that the matrices should be of similar size, sometimes

Algorithm for the function e: The algorithm for the function eoption is as shown: Use the menu function to show the 4 choices. Error-check (an error would take place

Example Exit modular program: In the illustration below, the user  Chose the Limit; -   Whenever prompted for n, entered the two invalid values before finally ente

Plotting from a Function: The following function creates a Figure Window as shown in figure, which shows various types of plots for similar y vector. The vector is passed as a

Illustration sorting vectors of structures: This function sorts the structures depend only on the price field. A more common function is shown next, that receives a string whi

readlenwid function: function call: [length, width] = readlenwid; function header: function [l,w] = readlenwid In the function call, not any argument is passed; henc

Intersect function and setdiff function: The intersect function rather than returns all the values which can be found in both of the input argument vectors. >> intersect(v