瀏覽代碼

Merge tag 'v0.2.7' into develop

update extended stats
Jérôme BUISINE 4 年之前
父節點
當前提交
3cb9bee4ac
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      data_attributes.py

+ 2 - 0
data_attributes.py

@@ -110,6 +110,8 @@ def get_image_features(data_type, block):
 
         sobel_mag = np.array(np.hypot(sobelx, sobely), 'uint8')  # magnitude
 
+        data = np.append(data, np.std(sobel_mag))
+        
         # add sobel complexity (kernel size of 5)
         sobelx = cv2.Sobel(arr, cv2.CV_64F, 1, 0, ksize=5)
         sobely = cv2.Sobel(arr, cv2.CV_64F, 0, 1,ksize=5)