Image Processing and Analysis Image Gradient with Matlab - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Image Processing and Analysis Image Gradient with Matlab

Description:

quiver(v,v,px,py), hold off; Example: Function 3. Example: ... contour(v,v,Z), hold on; quiver(v,v,px,py), hold off; Gradient operators in discrete space ... – PowerPoint PPT presentation

Number of Views:210
Avg rating:3.0/5.0
Slides: 15
Provided by: TKT7
Category:

less

Transcript and Presenter's Notes

Title: Image Processing and Analysis Image Gradient with Matlab


1
Image Processing and Analysis Image Gradient
with Matlab
  • Alexander Kolesnikov
  • 03.11.2009

2
Example Function 1
3
Example Gradient field for the function 1
4
Example Gradient magnitude
5
Example Gradient magnitude
6
Example 1 Matlab program
v -3.1253 X,Y meshgrid(v) Z
exp(-X.2 - Y.2) figure(21) white 1 1
1 set(gcf,'color',white') meshc(X,Y,Z) axis(-3
3 -3 3 0 1) set(gcf,'color',white') figure(22)
set(gcf,'color',white') px,py
gradient(Z,.2,.2) contour(v,v,Z), hold
on quiver(v,v,px,py), hold off figure(23)
set(gcf,'color',white') Mxpx.px
Mypy.py Msqrt(MxMy) meshz(X,Y,M)
7
Example Function 2
8
Example Gradient field for the functoin 2
9
Function 2 Gradient Magnitude
10
Function 2 Matlab program
v -3.1253 X,Y meshgrid(v) Z
X.exp(-X.2 - Y.2) figure(21) white 1 1
1 set(gcf,'color',white') meshc(X,Y,Z) axis(-3
3 -3 3 -0.4 0.5) set(gcf,'color',white') figure(
22) set(gcf,'color',white') px,py
gradient(Z,.2,.2) contour(v,v,Z), hold
on quiver(v,v,px,py), hold off
11
Example Function 3
12
Example Gradient field for the function 3
13
Function 3 Matlab program
v -3.1253 X,Y meshgrid(v) Z
peaks(X,Y) figure(21) white 1 1
1 set(gcf,'color',white') meshc(X,Y,Z) axis(-3
3 -3 3 -10 5) set(gcf,'color',white') figure(22)
set(gcf,'color',white') px,py
gradient(Z,.2,.2) contour(v,v,Z), hold
on quiver(v,v,px,py), hold off
14
Gradient operators in discrete space
Write a Comment
User Comments (0)
About PowerShow.com