文档介绍:1
AN INTRODUCTION TO
MATRIX MANIPULATION IN
MATLAB
A support document for
Digital Image Processing
Second Edition
Rafael C. Gonzalez
Richard E. Woods
Prentice Hall
Upper Saddle River, NJ 07458
zalezwoods
or
2
PREVIEW
The power that MATLAB brings to digital image processing is the extensive set of func•
tions that are available in MATLAB for processing multidimensional arrays, of which
matrices (two•dimensional numerical arrays) have a one•to•one correspondence with
digital images. In this brief tutorial we discuss and illustrate a number of ways used to
manipulate matrices. Usually, this is the first step in learning how to apply MATLAB
tools to image•processing applications.
MATRIX NOTATION
Matrices in MATLAB can be represented by any symbol or string of symbols, such as
A, a, MAT, RGB, real_mat, and so on. For the most part, we will use uppercase italic
notation for matrices (., A, B), and lowercase italics for scalar variables, (., a, b,
c) when writing equations or using these symbols in a line of text. When writing a
command line, we will use monospaced characters, and make use of the prompt “>>”
at the beginning of a line, which is the way the reader would see it the screen in the
MATLAB workspace. For example, the addition of two matrices will be represented in
the form A = B + C in a line of text, and by
>> A = B +