from cumulative_minimum_energy_map import cumulative_minimum_energy_map
from find_optimal_vertical_seam import find_optimal_vertical_seam
from energy_image import energy_image
from reduceWidth import reduceWidth
import matplotlib.pylab as plt
import numpy as np
import scipy.misc
image = 'inputSeamCarvingPrague.jpg'
ei = energy_image(image)
scipy.misc.imsave('outputEnergyPrague.png', ei)
image_array = np.asarray(plt.imread(image))
for i in range(0, 100):
    image_array, ei = reduceWidth(image_array, ei)
scipy.misc.imsave('outputEnergyReduceWidthPrague.png', ei)
scipy.misc.imsave('outputReduceWidthPrague.png', image_array)
image = 'inputSeamCarvingMall.jpg'
ei = energy_image(image)
image_array = np.asarray(plt.imread(image))
for i in range(0, 100):
    image_array, ei = reduceWidth(image_array, ei)
scipy.misc.imsave('outputReduceWidthMall.png', image_array)

8434e794040a56ddfae1683df8ef406eb49ca681
<mask token>

<mask token>
scipy.misc.imsave('outputEnergyPrague.png', ei)
<mask token>
for i in range(0, 100):
    image_array, ei = reduceWidth(image_array, ei)
scipy.misc.imsave('outputEnergyReduceWidthPrague.png', ei)
scipy.misc.imsave('outputReduceWidthPrague.png', image_array)
<mask token>
for i in range(0, 100):
    image_array, ei = reduceWidth(image_array, ei)
scipy.misc.imsave('outputReduceWidthMall.png', image_array)

<mask token>
image = 'inputSeamCarvingPrague.jpg'
ei = energy_image(image)
scipy.misc.imsave('outputEnergyPrague.png', ei)
image_array = np.asarray(plt.imread(image))
for i in range(0, 100):
    image_array, ei = reduceWidth(image_array, ei)
scipy.misc.imsave('outputEnergyReduceWidthPrague.png', ei)
scipy.misc.imsave('outputReduceWidthPrague.png', image_array)
image = 'inputSeamCarvingMall.jpg'
ei = energy_image(image)
image_array = np.asarray(plt.imread(image))
for i in range(0, 100):
    image_array, ei = reduceWidth(image_array, ei)
scipy.misc.imsave('outputReduceWidthMall.png', image_array)

from cumulative_minimum_energy_map import cumulative_minimum_energy_map
from find_optimal_vertical_seam import find_optimal_vertical_seam
from energy_image import energy_image
from reduceWidth import reduceWidth
import matplotlib.pylab as plt
import numpy as np
import scipy.misc
image = 'inputSeamCarvingPrague.jpg'
ei = energy_image(image)
scipy.misc.imsave('outputEnergyPrague.png', ei)
image_array = np.asarray(plt.imread(image))
for i in range(0, 100):
    image_array, ei = reduceWidth(image_array, ei)
scipy.misc.imsave('outputEnergyReduceWidthPrague.png', ei)
scipy.misc.imsave('outputReduceWidthPrague.png', image_array)
image = 'inputSeamCarvingMall.jpg'
ei = energy_image(image)
image_array = np.asarray(plt.imread(image))
for i in range(0, 100):
    image_array, ei = reduceWidth(image_array, ei)
scipy.misc.imsave('outputReduceWidthMall.png', image_array)
