From 226e7be9de5dff766e6c7e22988b8f9cbeab7917 Mon Sep 17 00:00:00 2001
From: Tom Nellius <tnellius@mail.uni-paderborn.de>
Date: Mon, 26 Sep 2022 18:00:59 +0200
Subject: [PATCH] Add copyMakeBorder()

---
 DIP2-cheatsheet.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/DIP2-cheatsheet.md b/DIP2-cheatsheet.md
index 7aa8fd5..042ec53 100644
--- a/DIP2-cheatsheet.md
+++ b/DIP2-cheatsheet.md
@@ -82,6 +82,7 @@ img.dtype
 ### Resize
 ```python
 cv2.resize(img, None, (0, 0), scale_x, scale_y, cv2.INTER_NEAREST)
+cv2.copyMakeBorder(img, top, bottom, left, right, cv2.BORDER_CONSTANT) #Pad with zeros. Top, bottom, etc. defines how many pixels get padded to each side
 ```
 
 ### Generate kernels
-- 
GitLab