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
Solving 2 × 2 systems of equations: However this may be easy in a MATLAB, in normal finding solutions to the systems of equations is not. The systems which are 2 × 2 are, thou

Example of Exponential function modular program: In order to view the distinction in the approximate value for e as n increases, the user kept choosing Limit & entering larger

str2num function - String: The function str2num does the opposite; it takes the string in which a number is stored and converts it to the type double: >> num = str2num('123.

Subfunctions: Though, it is possible to have more than one function in a given M-file. For illustration, if one function calls the other, the first function would be the prima

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

analyzing traffic; determine motion of flow; calculate tracklets; detect abnormalities;

Write a program to examine exponential function: We will write a program to examine the value of e and the exponential function. It will be a menu-driven. The menu options wil

Illustration of Set operations: For illustration, given the vectors as shown below: >> v1 = 2:6 v1 = 2  3  4  5  6 >> v2 = 1:2:7 v2 = 1  3  5  7

Sorting Vectors of structures: Whenever working with vector of structures, it is very common to sort based on a particular field within the structures. For illustration, recal

Anonymous Functions: The anonymous function is a very easy, one-line function. The benefit of an anonymous function is that it does not have to be stored in an M-file. This ca