diff options
author | Rémi Flamary <remi.flamary@gmail.com> | 2018-03-21 08:29:50 +0100 |
---|---|---|
committer | Rémi Flamary <remi.flamary@gmail.com> | 2018-03-21 08:29:50 +0100 |
commit | 6fdf5de8fa27fa16d6b8910fe96eb67b7761aa0e (patch) | |
tree | 55b8d6e463b131134b4aa9d4e3013bbb77811da6 /examples/plot_otda_linear_mapping.py | |
parent | 287c659ad35f5036ba2687caf73009ef455c7239 (diff) |
add linear mapping test + autopep8
Diffstat (limited to 'examples/plot_otda_linear_mapping.py')
-rw-r--r-- | examples/plot_otda_linear_mapping.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/plot_otda_linear_mapping.py b/examples/plot_otda_linear_mapping.py index 165fe72..7a3b761 100644 --- a/examples/plot_otda_linear_mapping.py +++ b/examples/plot_otda_linear_mapping.py @@ -9,7 +9,6 @@ Created on Tue Mar 20 14:31:15 2018 import numpy as np import pylab as pl import ot -from scipy import ndimage ############################################################################## # Generate data @@ -87,8 +86,8 @@ def minmax(I): # Loading images -I1 = ndimage.imread('../data/ocean_day.jpg').astype(np.float64) / 256 -I2 = ndimage.imread('../data/ocean_sunset.jpg').astype(np.float64) / 256 +I1 = pl.imread('../data/ocean_day.jpg').astype(np.float64) / 256 +I2 = pl.imread('../data/ocean_sunset.jpg').astype(np.float64) / 256 X1 = im2mat(I1) |