Parcourir la source

Update transformation filter path

Jérôme BUISINE il y a 4 ans
Parent
commit
1b0e7d94fd
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      classes/Transformation.py

+ 2 - 1
classes/Transformation.py

@@ -71,7 +71,8 @@ class Transformation():
 
         if self.transformation == 'min_diff_filter':
             w_size, h_size = list(map(int, self.param.split(',')))
-            path = os.path.join(path, 'W_' + str(w_size)) + '_' + str(h_size)
+            w, h = list(map(int, self.size.split(',')))
+            path = os.path.join(path, 'W_' + str(w_size)) + '_' + str(h_size) + '_S_' + str(w) + '_' + str(h)
 
         if self.transformation == 'static':
             # param contains image name to find for each scene