Skip to content
Snippets Groups Projects
Commit 226e7be9 authored by Tom Nellius's avatar Tom Nellius
Browse files

Add copyMakeBorder()

parent cef56460
Branches main
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment