summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorRémi Flamary <remi.flamary@gmail.com>2020-04-20 14:47:55 +0200
committerRémi Flamary <remi.flamary@gmail.com>2020-04-20 14:47:55 +0200
commit1ea47b72fa3ee8e9ee4c9a1e17871506b4d50066 (patch)
treef9bbbb2eb9859734efcf65a36f5c42f0b04699f4 /examples
parent2dc6dd874036b05eef02063c04a83a16a0568784 (diff)
read image using pylab
Diffstat (limited to 'examples')
-rw-r--r--examples/plot_otda_color_images.py5
-rw-r--r--examples/plot_otda_mapping_colors_images.py5
2 files changed, 4 insertions, 6 deletions
diff --git a/examples/plot_otda_color_images.py b/examples/plot_otda_color_images.py
index 62383a2..d9cbd2b 100644
--- a/examples/plot_otda_color_images.py
+++ b/examples/plot_otda_color_images.py
@@ -18,7 +18,6 @@ SIAM Journal on Imaging Sciences, 7(3), 1853-1882.
# License: MIT License
import numpy as np
-from scipy import ndimage
import matplotlib.pylab as pl
import ot
@@ -45,8 +44,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)
X2 = im2mat(I2)
diff --git a/examples/plot_otda_mapping_colors_images.py b/examples/plot_otda_mapping_colors_images.py
index a20eca8..bc9afba 100644
--- a/examples/plot_otda_mapping_colors_images.py
+++ b/examples/plot_otda_mapping_colors_images.py
@@ -22,7 +22,6 @@ estimation [8].
# License: MIT License
import numpy as np
-from scipy import ndimage
import matplotlib.pylab as pl
import ot
@@ -48,8 +47,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)