summaryrefslogtreecommitdiff
path: root/examples/plot_OTDA_mapping_color_images.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/plot_OTDA_mapping_color_images.py')
-rw-r--r--examples/plot_OTDA_mapping_color_images.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/plot_OTDA_mapping_color_images.py b/examples/plot_OTDA_mapping_color_images.py
index b42dcdc..85c4b6b 100644
--- a/examples/plot_OTDA_mapping_color_images.py
+++ b/examples/plot_OTDA_mapping_color_images.py
@@ -36,6 +36,7 @@ pl.axis('off')
pl.title('Image 2')
pl.tight_layout()
+
#%% Image conversion and dataset generation
def im2mat(I):
@@ -78,7 +79,9 @@ pl.ylabel('Blue')
pl.title('Image 2')
pl.tight_layout()
+
#%% domain adaptation between images
+
def minmax(I):
return np.clip(I, 0, 1)