Parcourir la source

Merge branch 'release/v0.4.6'

Jérôme BUISINE il y a 5 ans
Parent
commit
aa54dee373
2 fichiers modifiés avec 15 ajouts et 1 suppressions
  1. 1 1
      custom_config.py
  2. 14 0
      data_attributes.py

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
custom_config.py


+ 14 - 0
data_attributes.py

@@ -658,6 +658,20 @@ def get_image_features(data_type, block):
             data.append(np.mean(plane_max_mean_list_5))
 
         data = np.array(data)
+
+    if data_type == 'convolutional_kernel_stats_svd':
+
+        l_img = transform.get_LAB_L(block)
+        normed_l_img = utils.normalize_2D_arr(l_img)
+
+        # bilateral with window of size (5, 5)
+        normed_diff = convolution.convolution2D(normed_l_img, kernels.bilateral_diff, (5, 5))
+
+        # getting sigma vector from SVD compression
+        s = compression.get_SVD_s(normed_diff)
+
+        data = s
+
         
     return data