cszn / DnCNN

Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising (TIP, 2017)
https://cszn.github.io/
1.42k stars 534 forks source link

bug in usage of OpenCV resize function #85

Open hailihu opened 3 years ago

hailihu commented 3 years ago

https://github.com/cszn/DnCNN/blob/8b61f7e23a68180f5f27002539d745256bd86df2/TrainingCodes/dncnn_keras/data_generator.py#L72

After running this code with OpenCV 4.1.2, I found wrong results due to a bug in this line. The OpenCV resize function takes the dimensions in the order of (width, height), see: https://docs.opencv.org/master/da/d6e/tutorial_py_geometric_transformations.html