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
Illustration of symbolic variable: When, on the other hand, z is a symbolic variable to start with, quotes are not required around the expression, and the words are automatica

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

Illustration of gauss-jordan: Here's an illustration of performing such substitutions by using MATLAB >> a = [1 3 0; 2 1 3; 4 2 3] a = 1 3 0 2 1 3 4 2

Function strncmp: The function strncmp compares only the first n characters in the strings and ignores the rest. The initial two arguments are strings to compare, and third ar

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 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

Execution steps: Whenever the program is executed, the steps below will take place: The script calcandprintarea starts executing. The calcandprintarea calls the readr

Algorithm for expfn function: The algorithm for expfn function is as shown:  receives the value of x as the input argument.  Prints the value of exp(x).  assigns a

Use of Nested if-else statements: By using the nested if-else to select from among the three possibilities, not all the conditions should be tested. In this situation, if x is

Program of passing arguments to functions: This was an illustration of a function which did not receive any input arguments nor did it return any output arguments; it easily a