|
18 | 18 | sc = SeamCarverLib.SeamCarver(pic)
|
19 | 19 |
|
20 | 20 | print "print vertical seam 1"
|
21 |
| -print sc.width(), sc.height() |
| 21 | +print sc._width, sc._height |
22 | 22 | #SeamCarverUtilities.printVerticalSeamEnergy(sc)
|
23 | 23 | SeamCarverUtilities.printSeam(sc, direction="vertical")
|
24 | 24 | #SeamCarverUtilities.distToArray(sc)
|
25 | 25 |
|
26 | 26 | print "remove vertical seam"
|
27 | 27 | s = sc.findVerticalSeam()
|
28 | 28 | sc.removeVerticalSeam(s)
|
29 |
| -print sc.width(), sc.height() |
| 29 | +print sc._width, sc._height |
30 | 30 | print "find vertical seam"
|
31 | 31 | SeamCarverUtilities.printSeam(sc, direction="vertical")
|
32 | 32 |
|
|
38 | 38 | print "remove horizontal seam"
|
39 | 39 | s = sc.findHorizontalSeam()
|
40 | 40 | sc.removeHorizontalSeam(s)
|
41 |
| -print sc.width(), sc.height() |
| 41 | +print sc._width, sc._height |
42 | 42 | #SeamCarverUtilities.printHorizontalSeamEnergy(sc)
|
43 | 43 | print "find horizontal seam"
|
44 | 44 | SeamCarverUtilities.printSeam(sc, direction="horizontal")
|
|
49 | 49 | # sc.removeVerticalSeam(s)
|
50 | 50 |
|
51 | 51 | # # print "print vertical seam 2"
|
52 |
| -# print sc.width(), sc.height() |
| 52 | +# print sc._width, sc._height |
53 | 53 | # SeamCarverUtilities.printVerticalSeam(sc)
|
54 | 54 | # #SeamCarverUtilities.printVerticalSeamEnergy(sc)
|
55 | 55 | # # s = sc.findVerticalSeam()
|
56 |
| -# # for i in range(sc.height()): |
| 56 | +# # for i in range(sc._height): |
57 | 57 | # # print s[i]
|
58 | 58 | # # # print sc._edgeTo
|
59 | 59 | # # # print sc._distTo
|
|
62 | 62 |
|
63 | 63 | # s = sc.findVerticalSeam()
|
64 | 64 | # sc.removeVerticalSeam(s)
|
65 |
| -# print sc.width(), sc.height() |
| 65 | +# print sc._width, sc._height |
66 | 66 |
|
67 | 67 | # # print "print vertical seam 3"
|
68 |
| -# # print sc.width(), sc.height() |
| 68 | +# # print sc._width, sc._height |
69 | 69 | # SeamCarverUtilities.printVerticalSeam(sc)
|
70 | 70 | # SeamCarverUtilities.distToArray(sc)
|
71 | 71 | # #SeamCarverUtilities.printVerticalSeamEnergy(sc)
|
72 | 72 | # # s = sc.findVerticalSeam()
|
73 |
| -# # for i in range(sc.height()): |
| 73 | +# # for i in range(sc._height): |
74 | 74 | # # print s[i]
|
75 | 75 |
|
76 | 76 | # s = sc.findVerticalSeam()
|
77 | 77 | # sc.removeVerticalSeam(s)
|
78 |
| -# print sc.width(), sc.height() |
| 78 | +# print sc._width, sc._height |
79 | 79 |
|
80 | 80 | # # print "print vertical seam 4"
|
81 |
| -# # print sc.width(), sc.height() |
| 81 | +# # print sc._width, sc._height |
82 | 82 | # SeamCarverUtilities.printVerticalSeam(sc)
|
83 | 83 | #SeamCarverUtilities.printVerticalSeamEnergy(sc)
|
84 | 84 | # s = sc.findVerticalSeam()
|
85 |
| -# for i in range(sc.height()): |
| 85 | +# for i in range(sc._height): |
86 | 86 | # print s[i]
|
87 | 87 |
|
88 | 88 | # print "print vertical seam 2"
|
89 | 89 | # # print sc._edgeTo
|
90 | 90 | # # print sc._distTo
|
91 | 91 | # s = sc.findVerticalSeam()
|
92 | 92 | # sc.removeVerticalSeam(s)
|
93 |
| -# print sc.height(), sc.width() |
| 93 | +# print sc._height, sc._width |
94 | 94 | #SeamCarverUtilities.printVerticalSeam(sc)
|
95 | 95 | # print
|
96 | 96 |
|
97 | 97 | # print "print vertical seam 3"
|
98 | 98 | # s = sc.findVerticalSeam()
|
99 | 99 | # sc.removeVerticalSeam(s)
|
100 |
| -# print sc.height(), sc.width() |
| 100 | +# print sc._height, sc._width |
101 | 101 | # # print sc._edgeTo
|
102 | 102 | # # print sc._distTo
|
103 | 103 | # #pdb.set_trace()
|
|
107 | 107 | # print "remove vertical seam 4"
|
108 | 108 | # s = sc.findVerticalSeam()
|
109 | 109 | # sc.removeVerticalSeam(s)
|
110 |
| -# print sc.height(), sc.width() |
| 110 | +# print sc._height, sc._width |
111 | 111 | # # print sc._edgeTo
|
112 | 112 | # # print sc._distTo
|
113 | 113 | # SeamCarverUtilities.printVerticalSeam(sc)
|
114 | 114 |
|
115 | 115 | # print "remove vertical seam 5"
|
116 | 116 | # s = sc.findVerticalSeam()
|
117 | 117 | # sc.removeVerticalSeam(s)
|
118 |
| -# print sc.height(), sc.width() |
| 118 | +# print sc._height, sc._width |
119 | 119 | # SeamCarverUtilities.printVerticalSeam(sc)
|
120 | 120 |
|
121 | 121 |
|
|
0 commit comments