Graphics Reference
In-Depth Information
Figure 3.45. Two images with inpainting regions .
3.19 Consider the distortion energy for one quad q in optimized scale-and-
stretch resizing, given by
v i , v j V q (
v i
v j )
2
s q
(
v i
v j
)
(3.48)
Show that the optimal scaling factor s q that minimizes Equation ( 3.48 )is
given by:
v i , v j V q (
) (
v i
v j )
v i
v j
v i , v j V q
s q =
(3.49)
v i
v j
2
3.20 Consider the image and seams in Figure 3.46 . Note that the region on the
left side of the image is darker than the region on the right side. Order the
seams in increasing energy (assuming we use Equation ( 3.36 )).
AABC
D
E
Figure 3.46. An example image
with five vertical seams.
3.21
Show why the arc weights in Figure 3.31 b result in a minimal cut that (a)
forms a connected path of pixels that (b) only intersects one pixel per row.
Search WWH ::




Custom Search