Function imread - image processing, MATLAB in Engineering

function imread:

The function imread can read an image file, for illustration a JPEG (.jpg) file. The function reads color images into a 3-dimensional matrix.

>> myimage1 = imread('Fishing_1.JPG');

>> size(myimage1)

ans =

1536 2048 3

In this situation, the image is presented as true color matrix. This points that the image consists 1536 × 2048 pixels. The image can be altered by manipulating the numbers in the matrix. For illustration, multiplying each number by 0.75 will result in a range of values from 0 to 191 rather than from 0 to 255.

>> dimmer = 0.75*myimage1;

>> image(dimmer)


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







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

Write discussion on Function imread - image processing
Your posts are moderated
Related Questions
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

Use of built-in colormaps: MATLAB has built-in colormaps, it is also possible to generate others by using combinations of any colors. For illustration, the following generates

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

Referring to and Showing Cell Array Elements and Attributes: Just as with the other vectors, we can refer to individual elements of the cell arrays. The only difference is tha

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

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

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

Illustration of Subfunctions: This is an illustration of running this program: >> rectarea Please enter the length: 6 Please enter the width: 3 For a rectan

Data structures: The Data structures are variables which store more than one value. In order to made sense to store more than one value in a variable, the values must in some

Illustration of Matrix solutions: For illustration, consider the three equations below with 3unknowns x 1 ,x 2 , and x 3 : We can write this in the form Ax = b here A