-
-
Notifications
You must be signed in to change notification settings - Fork 56.3k
Closed
Labels
RFCcategory: imgprocquestion (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.orgask questions and other "no action" items here: https://forum.opencv.org
Description
System information (version)
- OpenCV => 2.4.9
- Operating System / Platform => Ubuntu 16.04
- Compiler => gcc 5.4.0
Detailed description
Nearest neighbor interpolation using cv2.resize does not give expected results.
Steps to reproduce
import cv2
import numpy as np
a = np.array([[0, 1, 2, 3, 4]], dtype=np.uint8)
print 'nearest', cv2.resize(a, dsize=(3, 1), interpolation=cv2.INTER_NEAREST)
gives
nearest [[0 1 3]]
expected
nearest [[0 2 4]]
gnthibault, githubharald, homm, ErenBalatkan, DeviantBadge and 1 morecrackwitz
Metadata
Metadata
Assignees
Labels
RFCcategory: imgprocquestion (invalid tracker)ask questions and other "no action" items here: https://forum.opencv.orgask questions and other "no action" items here: https://forum.opencv.org