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
Matrix definitions: As we know the matrix can be thought of as a table of values in which there are both rows and columns. The most common form of a matrix A (that is sometime

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

Set Operations: The MATLAB has numerous built-in functions which perform set operations on vectors. These involve intersect, union, setdiff, unique, and setxor. All these func

Related Structure Functions: There are many functions which can be used with structures in a MATLAB. The function isstruct will return 1 for logical true when the variable arg

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

How can I use the weighted moving average formula in matlab to smooth a column data of 404 values?

Reading from a Mat-File: The load function is used to read from various types of files. As with save function, by default the file will be supposed to be a MAT-file, and load

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.

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

Scaling:   change a row by multiplying it by a non-zero scalar sri →  ri For illustration, for the matrix: