Slide 14
Slide 14 text
5.2. Example: more on images...
l
x
, l
y = f
a
c
e
.
s
h
a
p
e
# C
r
o
p
p
i
n
g
, b
y s
l
i
c
i
n
g t
h
e n
d
a
r
r
a
y (
m
a
t
r
i
x
)
c
r
o
p
_
f
a
c
e = f
a
c
e
[
l
x / 4
: l
x / 4
, l
y / 4
: l
y / 4
]
# U
p <
> d
o
w
n f
l
i
p
f
l
i
p
_
u
d
_
f
a
c
e = n
p
.
f
l
i
p
u
d
(
f
a
c
e
)
# R
o
t
a
t
i
o
n
r
o
t
a
t
e
_
f
a
c
e = n
d
i
m
a
g
e
.
r
o
t
a
t
e
(
f
a
c
e
, 4
5
)
r
o
t
a
t
e
_
f
a
c
e
_
n
o
r
e
s
h
a
p
e = n
d
i
m
a
g
e
.
r
o
t
a
t
e
(
f
a
c
e
, 4
5
,
r
e
s
h
a
p
e
=
F
a
l
s
e
)
p
l
t
.
f
i
g
u
r
e
(
)
p
l
t
.
s
u
b
p
l
o
t
(
2
, 3
, 1
) # S
u
b
p
l
o
t l
i
k
e i
n M
A
T
L
A
B
p
l
t
.
i
m
s
h
o
w
(
f
a
c
e
, c
m
a
p
=
'
g
r
a
y
'
)
p
l
t
.
s
u
b
p
l
o
t
(
2
, 3
, 2
)
p
l
t
.
i
m
s
h
o
w
(
c
r
o
p
_
f
a
c
e
, c
m
a
p
=
'
g
r
a
y
'
)
# e
t
c
.
.
.
14