summaryrefslogtreecommitdiff
path: root/examples/plot_OTDA_color_images.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plot_OTDA_color_images.py')
-rw-r--r--examples/plot_OTDA_color_images.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/plot_OTDA_color_images.py b/examples/plot_OTDA_color_images.py
index a8861c6..75ac5b6 100644
--- a/examples/plot_OTDA_color_images.py
+++ b/examples/plot_OTDA_color_images.py
@@ -48,6 +48,7 @@ def mat2im(X, shape):
"""Converts back a matrix to an image"""
return X.reshape(shape)
+
X1 = im2mat(I1)
X2 = im2mat(I2)
@@ -102,6 +103,7 @@ X2te = da_entrop.predict(X2, -1)
def minmax(I):
return np.clip(I, 0, 1)
+
I1t = minmax(mat2im(X1t, I1.shape))
I2t = minmax(mat2im(X2t, I2.shape))