- Page 1 and 2: MATLAB practice IPCV 2006, Budapest
- Page 3 and 4: Chapter 1 Fundamentals MATLAB - p.
- Page 5 and 6: Digital Image Representation An ima
- Page 7 and 8: Images as Matrices A digital image
- Page 9 and 10: Supported Image Formats Format Desc
- Page 11 and 12: Displaying Images imshow(f,G) • i
- Page 13 and 14: Displaying Images >> f=imread(’ro
- Page 15 and 16: Writing Images imwrite(f, ’filena
- Page 17: Writing Images imfinfo filename >>
- Page 21 and 22: Writing Images print -fno -dfilefor
- Page 23 and 24: Image Types • Intensity images
- Page 25 and 26: Binary Images A binary image is a l
- Page 27 and 28: Converting between Image Classes an
- Page 29 and 30: Converting between Image Classes an
- Page 31 and 32: Converting between Image Classes an
- Page 33 and 34: Array Indexing • Vector Indexing
- Page 35 and 36: Vector Indexing >> v(1:3) ans = 1 3
- Page 37 and 38: Vector Indexing linspace(a, b, n) >
- Page 39 and 40: Matrix Indexing >> C3=A(:,3) C3 = 3
- Page 41 and 42: Matrix Indexing >> A(end,end) ans =
- Page 43 and 44: Matrix Indexing >> v=T2(:) v = 1 4
- Page 45 and 46: Matrix Indexing >> f=imread(’rose
- Page 47 and 48: Matrix Indexing >> fs=f(1:8:end,1:8
- Page 49 and 50: Selecting Array Dimensions operatio
- Page 51 and 52: Some Important Standard Arrays >> A
- Page 53 and 54: M-Files M-Files in MATLAB can be sc
- Page 55 and 56: M-Files function [G,x] = planerot(x
- Page 57 and 58: Arithmetic Operators Operator Name
- Page 59 and 60: Arithmetic Operators Operator Name
- Page 61 and 62: Image Arithmetic Functions Function
- Page 63 and 64: An Example fd=double(f); gd=double(
- Page 65 and 66: An Example >> help improd IMPROD Co
- Page 67 and 68: Relational Operations Operator Name
- Page 69 and 70:
Logical Operators Operator Name & A
- Page 71 and 72:
Logical Functions Function xor all
- Page 73 and 74:
Logical Functions Function Descript
- Page 75 and 76:
Some Important Variables and Consta
- Page 77 and 78:
if, else, and elseif if expression
- Page 79 and 80:
for for index=start:increment:end s
- Page 81 and 82:
for for q=0:5:100 filename=sprintf(
- Page 83 and 84:
while while expression statements e
- Page 85 and 86:
eak fid = fopen(’fft.m’,’r’
- Page 87 and 88:
switch switch switch_expression cas
- Page 89 and 90:
eturn function d = det(A) %DET det(
- Page 91 and 92:
Code Optimization • Vectorizing L
- Page 93 and 94:
A Simple Example Suppose that we wa
- Page 95 and 96:
Comparison for loops vs. vectorizat
- Page 97 and 98:
Comparison for loops vs. vectorizat
- Page 99 and 100:
Preallocating Arrays tic for i=1:10
- Page 101 and 102:
Interactive I/O t=input(’message
- Page 103 and 104:
Interactive I/O [a,b,c,...]=strread
- Page 105 and 106:
Load variables from disk load(’fi
- Page 107 and 108:
Cell Arrays Cell array is a multidi
- Page 109 and 110:
Structures Structures allow groupin
- Page 111 and 112:
Plotting Your Data >> x=0:0.2:12; >
- Page 113 and 114:
Creating Plots >> t=0:pi/100:2*pi;
- Page 115 and 116:
Specifying Line Style >> plot(t,y,
- Page 117 and 118:
Adding Plots to an Existing Graph >
- Page 119 and 120:
Plotting Markers and Lines >> x=0:p
- Page 121 and 122:
Plotting with Two Y-Axes >> t=0:pi/
- Page 123 and 124:
Combining Linear and Logarithmic Ax
- Page 125 and 126:
Specifying Ticks and Tick Labels 1
- Page 127 and 128:
Chapter 3 Intensity Transformations
- Page 129 and 130:
Background The spatial domain proce
- Page 131 and 132:
Function imadjust g=imadjust(f,[low
- Page 133 and 134:
Function imadjust >> g1=imadjust(f,
- Page 135 and 136:
Function imadjust >> g3=imadjust(f,
- Page 137 and 138:
Generating and Plotting Image Histo
- Page 139 and 140:
Generating and Plotting Image Histo
- Page 141 and 142:
Generating and Plotting Image Histo
- Page 143 and 144:
Generating and Plotting Image Histo
- Page 145 and 146:
Some Useful Plotting Function Symbo
- Page 147 and 148:
Histogram Equalization g=histeq(f,n
- Page 149 and 150:
Histogram Equalization 18000 16000
- Page 151 and 152:
Histogram Equalization 1 Output int
- Page 153 and 154:
Histogram Matching x 10 4 6 5 4 3 2
- Page 155 and 156:
Histogram Matching c1=A1*(1/((2*pi)
- Page 157 and 158:
Histogram Matching %Initialize. rep
- Page 159 and 160:
Histogram Matching >> f=imread(’m
- Page 161 and 162:
Spatial Filtering Neighborhood proc
- Page 163 and 164:
Linear Spatial Filtering The proces
- Page 165 and 166:
Linear Spatial Filtering The first
- Page 167 and 168:
Linear Spatial Filtering The preced
- Page 169 and 170:
Linear Spatial Filtering Convolutio
- Page 171 and 172:
Linear Spatial Filtering Options Fi
- Page 173 and 174:
Linear Spatial Filtering >> gd=imfi
- Page 175 and 176:
Linear Spatial Filtering >> gs=imfi
- Page 177 and 178:
Linear Spatial Filtering >> f8=im2u
- Page 179 and 180:
Nonlinear Spatial Filtering The IPT
- Page 181 and 182:
Nonlinear Spatial Filtering g=colfi
- Page 183 and 184:
Nonlinear Spatial Filtering Options
- Page 185 and 186:
Nonlinear Spatial Filtering functio
- Page 187 and 188:
IPT Standard Spatial Filters • Li
- Page 189 and 190:
Linear Spatial Filters Type ’aver
- Page 191 and 192:
Linear Spatial Filters >> w=fspecia
- Page 193 and 194:
Linear Spatial Filters >> g1=imfilt
- Page 195 and 196:
Linear Spatial Filters >> g=f2-g2;
- Page 197 and 198:
Linear Spatial Filters MATLAB - p.
- Page 199 and 200:
Nonlinear Spatial Filters Min filte
- Page 201 and 202:
Nonlinear Spatial Filters >> f=imre
- Page 203 and 204:
Chapter 4 Frequency Domain Processi
- Page 205 and 206:
The 2-D Discrete Fourier Transform
- Page 207 and 208:
The 2-D Discrete Fourier Transform
- Page 209 and 210:
The 2-D Discrete Fourier Transform
- Page 211 and 212:
The 2-D Discrete Fourier Transform
- Page 213 and 214:
The 2-D Discrete Fourier Transform
- Page 215 and 216:
Computing and Visualizing the 2-D D
- Page 217 and 218:
Computing and Visualizing the 2-D D
- Page 219 and 220:
Computing and Visualizing the 2-D D
- Page 221 and 222:
Computing and Visualizing the 2-D D
- Page 223 and 224:
Computing and Visualizing the 2-D D
- Page 225 and 226:
Computing and Visualizing the 2-D D
- Page 227 and 228:
Filtering in the Frequency Domain
- Page 229 and 230:
Fundamental Concepts f(x,y) = F −
- Page 231 and 232:
Fundamental Concepts The foundation
- Page 233 and 234:
Fundamental Concepts Filtering in t
- Page 235 and 236:
Fundamental Concepts Based on the c
- Page 237 and 238:
Fundamental Concepts Assume that fu
- Page 239 and 240:
Fundamental Concepts if nargin==1 P
- Page 241 and 242:
Fundamental Concepts The image, f,
- Page 243 and 244:
Fundamental Concepts >> PQ=paddedsi
- Page 245 and 246:
Basic Steps in DFT Filtering MATLAB
- Page 247 and 248:
Basic Steps in DFT Filtering MATLAB
- Page 249 and 250:
An M-function for Filtering in the
- Page 251 and 252:
Obtaining Frequency Domain Filters
- Page 253 and 254:
Obtaining Frequency Domain Filters
- Page 255 and 256:
Obtaining Frequency Domain Filters
- Page 257 and 258:
Obtaining Frequency Domain Filters
- Page 259 and 260:
Obtaining Frequency Domain Filters
- Page 261 and 262:
Edge detection • Edges can be fou
- Page 263 and 264:
Prewitt detector Masks: ⎡ ⎢ ⎣
- Page 265 and 266:
Roberts detector Masks: [ −1 0 0
- Page 267 and 268:
Zero-crossing detector It is very s
- Page 269 and 270:
Canny detector 5. Finally, the algo
- Page 271 and 272:
Dilation IPT function imdilate perf
- Page 273 and 274:
Structuring Element IPT function st
- Page 275 and 276:
Structuring Element Syntax Forms st
- Page 277 and 278:
Dilation >> originalI=imread(’cam
- Page 279 and 280:
Erosion MATLAB - p. 279/333
- Page 281 and 282:
Labeling Connected Components >> f=
- Page 283 and 284:
Chapter 7 Color Image Processing MA
- Page 285 and 286:
Color Image Representation in MATLA
- Page 287 and 288:
RGB Images The data class of the co
- Page 289 and 290:
RGB Images If all component images
- Page 291 and 292:
RGB Images function rgbcube(vx,vy,v
- Page 293 and 294:
RGB Images %Set up viewing point. i
- Page 295 and 296:
Indexed Images MATLAB - p. 295/333
- Page 297 and 298:
Indexed Image Sometimes it is neces
- Page 299 and 300:
Indexed Images Name autumn bone col
- Page 301 and 302:
Manipulating RGB and Indexed Images
- Page 303 and 304:
Manipulating RGB and Indexed Images
- Page 305 and 306:
Manipulating RGB and Indexed Images
- Page 307 and 308:
NTSC Color Space The NTSC Color Sys
- Page 309 and 310:
NTSC Color Space Function rgb2ntsc
- Page 311 and 312:
The YCbCr Color Space The YCbCr col
- Page 313 and 314:
The YCbCr Color Space The conversio
- Page 315 and 316:
The HSV Color Space MATLAB - p. 315
- Page 317 and 318:
The CMY Color Space The conversion
- Page 319 and 320:
The HSI Color Space When humans vie
- Page 321 and 322:
Converting Colors from RGB to HSI T
- Page 323 and 324:
Converting Colors from RGB to HSI f
- Page 325 and 326:
Converting Colors from RGB to HSI n
- Page 327 and 328:
Converting Color from HSI to RGB RG
- Page 329 and 330:
Converting Color from HSI to RGB BR
- Page 331 and 332:
Converting Color from HSI to RGB %
- Page 333:
References • R. C. Gonzalez, R. E