summaryrefslogtreecommitdiff
path: root/docs/source/auto_examples/plot_otda_mapping_colors_images.py
diff options
context:
space:
mode:
authorRĂ©mi Flamary <remi.flamary@gmail.com>2020-04-21 08:18:34 +0200
committerGitHub <noreply@github.com>2020-04-21 08:18:34 +0200
commit3ade772179eb0405ae6bc70cfc5e701b70d70e89 (patch)
tree1cd567393e5687f44b65157b8a9a7b7614392493 /docs/source/auto_examples/plot_otda_mapping_colors_images.py
parent43b2190db71b1ccbeec8fddaae23ca6af220e1b5 (diff)
parente106537ee2fd5c3b2dac87789ed9f2dc40766a55 (diff)
Merge pull request #143 from PythonOT/doc_travis
[WIP] Update travis test and documentation (examples)
Diffstat (limited to 'docs/source/auto_examples/plot_otda_mapping_colors_images.py')
-rw-r--r--docs/source/auto_examples/plot_otda_mapping_colors_images.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/source/auto_examples/plot_otda_mapping_colors_images.py b/docs/source/auto_examples/plot_otda_mapping_colors_images.py
index a20eca8..bc9afba 100644
--- a/docs/source/auto_examples/plot_otda_mapping_colors_images.py
+++ b/docs/source/auto_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)