Illustration of image processing, MATLAB in Engineering

Illustration of Image processing:

This displays that there are 64 rows, or in another word, 64 colors, in this specific colormap. It also displays that the first five colors are shades of blue.

The format of calling the image function is as shown below:

image(mat)

here the matrix mat is a matrix which represents the colors in an m × n image. When the matrix has the size m × n, then each and every element is an index into the present colormap.

The one way to show the colors in the jet colormap (that has 64 colors) is to generate a matrix which stores the values 1 through 64, and pass that to the image function, as shown in figure.

2081_Illustration of Image processing.png

Whenever the matrix is passed to the image function, then the value in each element in matrix is used as an index into the colormap. For illustration, the value in cmap(1,2) is 9, therefore the color displayed in position(1,2) in the image will be the color presented by the ninth row in the colormap. By using numbers 1 through 64, we can see all colors in this colormap.

>> cmap = reshape(1:64, 8,8)

cmap =

1687_Illustration of Image processing1.png

 

This represents that the first colors are shades of blue, the end colors are shades of red, and in between there are shades of aqua, green, yellow, & orange.

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







Related Discussions:- Illustration of image processing, Assignment Help, Ask Question on Illustration of image processing, Get Answer, Expert's Help, Illustration of image processing Discussions

Write discussion on Illustration of image processing
Your posts are moderated
Related Questions
Illustration of symbolic variable: When, on the other hand, z is a symbolic variable to start with, quotes are not required around the expression, and the words are automatica

Use of While loop: Here is an illustration of calling the function, passing 5000 for the value of the input argument high. >> factgthigh(5000) ans = 5040 The itera

. Generate the following signal, x(n)=1+cos((25*pi*n)/100),0 Compute the DTFT of x[n] for w=0:0.01:2*pi Plot the Real part, imaginary part, the amplitude and phas

Function used in sound files: The MATLAB has numerous other functions which let you read and play sound or audio files. In the audio files, sampled data for each audio channel

Algorithm for the function explaine: The algorithm for the function explaine is as shown:  Print a description of e, the exp function, and how to find the approximate va

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

Example of Interpolation and extrapolation: The MATLAB has a function to do this, known as polyfit. The function polyfit finds the coefficients of the polynomial of the partic

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

Displaying the cell arrays: There are several techniques of displaying the cell arrays. The celldisp function shows all elements of the cell array:   >> celldisp(cellro

Removing Whitespace Characters: The MATLAB has functions which will eliminate trailing blanks from the end of a string and/or leading blanks from the starting of a string.