瀏覽代碼

update some comments

quarrying 4 年之前
父節點
當前提交
96f139cba1
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 3 0
      khandy/image/crop_or_pad.py
  2. 3 0
      khandy/image/translate.py

+ 3 - 0
khandy/image/crop_or_pad.py

@@ -3,6 +3,9 @@ import numpy as np
 
 
 def crop_or_pad(image, x_min, y_min, x_max, y_max, border_value=0):
 def crop_or_pad(image, x_min, y_min, x_max, y_max, border_value=0):
     """
     """
+    See Also:
+        translate_image
+        
     References:
     References:
         tf.image.resize_image_with_crop_or_pad
         tf.image.resize_image_with_crop_or_pad
     """
     """

+ 3 - 0
khandy/image/translate.py

@@ -15,6 +15,9 @@ def translate_image(image, x_shift, y_shift, border_value=0):
             
             
     Returns:
     Returns:
         ndarray: The translated image.
         ndarray: The translated image.
+
+    See Also:
+        crop_or_pad
     """
     """
     assert image.ndim in [2, 3]
     assert image.ndim in [2, 3]
     assert isinstance(x_shift, int)
     assert isinstance(x_shift, int)