-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmorph_tps.py
More file actions
26 lines (22 loc) · 856 Bytes
/
morph_tps.py
File metadata and controls
26 lines (22 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
'''
File name: morph_tps.py
Author:
Date created:
'''
'''
File clarification:
Image morphing via TPS
- Input im1: target image
- Input im2: source image
- Input im1_pts: correspondences coordiantes in the target image
- Input im2_pts: correspondences coordiantes in the source image
- Input warp_frac: a vector contains warping parameters
- Input dissolve_frac: a vector contains cross dissolve parameters
- Output morphed_im: a set of morphed images obtained from different warp and dissolve parameters.
The size should be [number of images, image height, image Width, color channel number]
'''
from est_tps import est_tps
from obtain_morphed_tps import obtain_morphed_tps
def morph_tps(im1, im2, im1_pts, im2_pts, warp_frac, dissolve_frac):
# TODO: Your code here
return morphed_im