Image processing, MATLAB in Engineering

Image Processing:

The Images are represented as grids, or matrices, of picture elements (known as pixels). In MATLAB an image usually is represented as a matrix in which each and every element corresponds to a pixel in the image. Each element which represents a particular pixel stores the color for that pixel. There are two basic ways by which the color can be represented:

  • The true color, or RGB, in which the 3 color components are stored (that is red, green, & blue, in that order).
  • Index into a colormap: the value stored is an integer which refers to a row in a matrix known as colormap. The colormap stores the red, green, & blue components in three individual columns.

For an image which has m × n pixels, the true color matrix would be a 3-dimensional matrix with the size m × n × 3. The first two dimensions show the coordinates of pixel. The third index is the color component; (:,:,1) is red, (:,:,2) is green, and (:,:,3) is the blue component.

The indexed presentation rather would be an m × n matrix of integers, all of which is an index into a colormap matrix which has the size p × 3 (where p is the number of colors available in that specific colormap).Each row in the colormap has three numbers presenting one color: first the red, then green, and then blue components. The illustration is as follows,

[1 0 0]   is red

[0 1 0]   is green

[0 0 1]   is blue

    etc.

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







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

Write discussion on Image processing
Your posts are moderated
Related Questions
Illustration of gauss-jordan elimination: An illustration of interchanging rows would be r1 ¬→ r3, that would results: Now, beginning with this matrix, an illustration of sc

Illustration of Sound files: For illustration, the following script generates a subplot which shows the signals from chirp and from train, which is as shown in figure:


Executing a program: Running the program would be completed by typing the name of the script; this would call the other functions: >> calcandprintarea Whenever prompt

Converting between the String and Number types: The MATLAB has many functions which convert numbers to strings in which each character element is a separate digit, and vice ve

Gauss Elimination: The Gauss elimination technique consists of:    Generating the augmented matrix [A b]    Applying EROs to augmented matrix to obtain an upper trian

Examine exponential function: The algorithm for the main script program is shown below:  Call a function eoption to show the menu and return the user's choice.  Loop

Plotting File data: It is frequently essential to read data from a file and plot it. Generally, this entails knowing the format of the file. For illustration, let us suppose t

Gauss, Gauss-Jordan elimination: For 2 × 2 systems of equations, there are well-defined, easy solution techniques. Though, for the larger systems of equations, finding solutio

Technique is to create one element - vector: Technique is to create one element with the values from one structure, and use repmat to replicate it to the preferred size. Then,