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


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
1. Write a MATLAB function (upperTriangle) using the functions you previously created to convert a matrix to upper triangular form. Start with row 1, column1. Find the row that has

readlenwid function: function call: [length, width] = readlenwid; function header: function [l,w] = readlenwid In the function call, not any argument is passed; henc

Example Exit modular program: In the illustration below, the user  Chose the Limit; -   Whenever prompted for n, entered the two invalid values before finally ente

Intersect function and setdiff function: The intersect function rather than returns all the values which can be found in both of the input argument vectors. >> intersect(v

Replacement : Replace a row by adding it to (or subtract from it) a multiple of the other row. For a given row ri, this is written as   ri  - srj →  ri Note that when r

Evaluating a string: The function eval is used to compute a string as a function. For illustration, below is the string 'plot(x)'is interpreted to be a call to plot the functi

. Generate the following signal, x(n)=1+cos((25*pi*n)/100),0 Compute the DTFT of x[n] for w=0:0.01:2*pi Plot the Real part, imaginary part, the amplitude and phas

Example of Interpolation and extrapolation: The MATLAB has a function to do this, known as polyfit. The function polyfit finds the coefficients of the polynomial of the partic

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

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.