|
19 | 19 |
|
20 | 20 | print "print vertical seam 1"
|
21 | 21 | print sc.width(), sc.height()
|
22 |
| -SeamCarverUtilities.printVerticalSeamEnergy(sc) |
| 22 | +SeamCarverUtilities.printVerticalSeam(sc) |
| 23 | +SeamCarverUtilities.distToArray(sc) |
| 24 | +print |
| 25 | +#SeamCarverUtilities.printVerticalSeamEnergy(sc) |
23 | 26 | #s = sc.findVerticalSeam()
|
24 | 27 | # for i in range(sc.height()):
|
25 | 28 | # print s[i]
|
26 |
| - |
27 |
| -s = sc.findVerticalSeam() |
28 |
| -sc.removeVerticalSeam(s) |
29 | 29 |
|
30 |
| -# print "print vertical seam 2" |
31 |
| -print sc.width(), sc.height() |
32 |
| -SeamCarverUtilities.printVerticalSeamEnergy(sc) |
33 |
| -# s = sc.findVerticalSeam() |
34 |
| -# for i in range(sc.height()): |
35 |
| -# print s[i] |
36 |
| -# # print sc._edgeTo |
37 |
| -# # print sc._distTo |
38 |
| -# SeamCarverUtilities.printVerticalSeam(sc) |
39 |
| -# print |
| 30 | +print "print horizontal seam 1" |
| 31 | +SeamCarverUtilities.printHorizontalSeam(sc) |
| 32 | +SeamCarverUtilities.distToArray(sc) |
| 33 | +print |
40 | 34 |
|
41 |
| -s = sc.findVerticalSeam() |
42 |
| -sc.removeVerticalSeam(s) |
43 |
| -print sc.width(), sc.height() |
| 35 | +print "remove horizontal seam 1" |
| 36 | +s = sc.findHorizontalSeam() |
| 37 | +sc.removeHorizontalSeam(s) |
| 38 | +SeamCarverUtilities.printHorizontalSeam(sc) |
| 39 | +SeamCarverUtilities.distToArray(sc) |
44 | 40 |
|
45 |
| -# print "print vertical seam 3" |
| 41 | + |
| 42 | +# s = sc.findVerticalSeam() |
| 43 | +# sc.removeVerticalSeam(s) |
| 44 | + |
| 45 | +# # print "print vertical seam 2" |
46 | 46 | # print sc.width(), sc.height()
|
47 |
| -SeamCarverUtilities.printVerticalSeamEnergy(sc) |
| 47 | +# SeamCarverUtilities.printVerticalSeam(sc) |
| 48 | +# #SeamCarverUtilities.printVerticalSeamEnergy(sc) |
| 49 | +# # s = sc.findVerticalSeam() |
| 50 | +# # for i in range(sc.height()): |
| 51 | +# # print s[i] |
| 52 | +# # # print sc._edgeTo |
| 53 | +# # # print sc._distTo |
| 54 | +# # SeamCarverUtilities.printVerticalSeam(sc) |
| 55 | +# # print |
| 56 | + |
48 | 57 | # s = sc.findVerticalSeam()
|
49 |
| -# for i in range(sc.height()): |
50 |
| -# print s[i] |
| 58 | +# sc.removeVerticalSeam(s) |
| 59 | +# print sc.width(), sc.height() |
51 | 60 |
|
52 |
| -s = sc.findVerticalSeam() |
53 |
| -sc.removeVerticalSeam(s) |
54 |
| -print sc.width(), sc.height() |
| 61 | +# # print "print vertical seam 3" |
| 62 | +# # print sc.width(), sc.height() |
| 63 | +# SeamCarverUtilities.printVerticalSeam(sc) |
| 64 | +# SeamCarverUtilities.distToArray(sc) |
| 65 | +# #SeamCarverUtilities.printVerticalSeamEnergy(sc) |
| 66 | +# # s = sc.findVerticalSeam() |
| 67 | +# # for i in range(sc.height()): |
| 68 | +# # print s[i] |
55 | 69 |
|
56 |
| -# print "print vertical seam 4" |
| 70 | +# s = sc.findVerticalSeam() |
| 71 | +# sc.removeVerticalSeam(s) |
57 | 72 | # print sc.width(), sc.height()
|
58 |
| -SeamCarverUtilities.printVerticalSeamEnergy(sc) |
| 73 | + |
| 74 | +# # print "print vertical seam 4" |
| 75 | +# # print sc.width(), sc.height() |
| 76 | +# SeamCarverUtilities.printVerticalSeam(sc) |
| 77 | +#SeamCarverUtilities.printVerticalSeamEnergy(sc) |
59 | 78 | # s = sc.findVerticalSeam()
|
60 | 79 | # for i in range(sc.height()):
|
61 | 80 | # print s[i]
|
|
0 commit comments