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
Dot Product: The dot or inner product of two vectors a and b is written as a • b and is defined as  In another words, this is like matrix multiplication when multiplyi

num2str function: The num2str function, that converts real numbers, can be called in many ways. If only the real number is passed to the num2str function, it will generate a s

deblank function: The deblank function eliminates only trailing blanks from the string, not leading the blanks. The strtrim function will eliminate both the leading and traili

I dont know how to input different videos on matlab program

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.

Interchange rows : for illustration interchanging rows ri and rj is written as

Use polyval to evaluate the derivative at xder. This will be the % slope of the tangent line, "a" (general form of a line: y = ax + b). % 4. Calculate the intercept, b, of t

Built-in colormaps: The MATLAB has numerous built-in colormaps which are named; the reference page on colormap shows them. Calling the function colormap without passing any ar

Changing Case: The MATLAB has two functions which convert strings to all uppercase letters, or all lowercase, known as the upper and lower. >> mystring = 'AbCDEfgh';

Matrix operations: There are some common operations on matrices. The operators which are applied term by term, implying that the matrices should be of similar size, sometimes