Illustration of image processing, MATLAB in Engineering

Assignment Help:

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.


Related Discussions:- Illustration of image processing

Basic mathematical operations, Basic mathematical operations: All the ...

Basic mathematical operations: All the basic mathematical operations can be executed on symbolic expressions and variables (example, add, raise to a power, multiply, subtract,

Function cellplot - cell array, Function cellplot - Cell array: The fu...

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

Illustration of image processing, Illustration of Image processing: Th...

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 a

Data structures, Data structures: The Data structures are variables wh...

Data structures: The Data structures are variables which store more than one value. In order to made sense to store more than one value in a variable, the values must in some

Subfunctions, Subfunctions: Though, it is possible to have more than o...

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

Help command, Help command: The help command is used with the script r...

Help command: The help command is used with the script rectarea, the function readlenwid, and the major function printrectarea. To see the first comment in the subfunction, as

Graphics properties, Graphics Properties: The MATLAB uses the Handle G...

Graphics Properties: The MATLAB uses the Handle Graphics in all its figures. All figures consist of various objects, each of which is assigned a handle. The object handle is a

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd