Image processing, MATLAB in Engineering

Assignment Help:

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.


Related Discussions:- Image processing

Algorithm for subfunction, Algorithm for subfunction: The algorithm fo...

Algorithm for subfunction: The algorithm for subfunction askforn is as shown:  Prompt the user for the positive integer n.  Loop to print an error message and reprom

Polyhedron - graphics objects, Polyhedron - graphics objects: The fiel...

Polyhedron - graphics objects: The field polyhedron.vertices is a matrix in which each row presents (x,y,z) points. The field polyhedron.faces defines the faces: for illustrat

Menu driven modular program, Application: Menu driven Modular Program ...

Application: Menu driven Modular Program Numerous longer, more involved programs which have interaction with the user are menu-driven, that means that the program prints a men

Calcrectarea subfunction, calcrectarea subfunction: function call: ar...

calcrectarea subfunction: function call: area = calcrectarea(len,wid); function header: function area = calcrectarea(len, wid)   In the function call, the two arg

Displaying expressions, Displaying expressions: The good-looking funct...

Displaying expressions: The good-looking function will show such expressions by using exponents; for illustration, >> b = sym('x^2') b = x^2 >> pretty(b)

Intersect function and setdiff function, Intersect function and setdiff fun...

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

Logical scalar values - operators, Logical scalar values: The MATLAB a...

Logical scalar values: The MATLAB also has or and and operators which work element wise for the matrices: These operators will compare any of the two vectors or matric

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

Example to change the line width from the default, Example to change the li...

Example to change the line width from the default: For illustration, to change the line width from the default of 0.5 to 1.5: >> set(hl,'LineWidth',1.5) As long as the

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