Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should it be (image_rows, image_cols)? #81

Open
zihaozhihao opened this issue Oct 16, 2018 · 1 comment
Open

Should it be (image_rows, image_cols)? #81

zihaozhihao opened this issue Oct 16, 2018 · 1 comment

Comments

@zihaozhihao
Copy link

img = resize(img, (image_cols, image_rows), preserve_range=True)

According to the scikit-image resize api, the output_shape should first be rows, then cols.

@GeorgeBatch
Copy link

Yes. I think it occurred because, in cv2.resize(), which was used in an earlier version, the arguments were switched. https://docs.opencv.org/2.4/modules/imgproc/doc/geometric_transformations.html#void%20resize(InputArray%20src,%20OutputArray%20dst,%20Size%20dsize,%20double%20fx,%20double%20fy,%20int%20interpolation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants