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

Mat.createFrom(BufferedImage ....) creates a Mat with wrong dimensions #30

Closed
jassuncao opened this issue Nov 26, 2014 · 1 comment
Closed
Labels

Comments

@jassuncao
Copy link

Calling Mat.createFrom(BufferedImage..) for a 640x480 BufferedImage will create a 480x640 Mat.
The culprit might be this line in AbstractMat.copyFrom(..) :

create(image.getWidth(), image.getHeight(), CV_MAKETYPE(depth, numChannels));
super.copyFrom(image, gamma, flipChannels, roi);
@saudet saudet added the bug label Dec 6, 2014
@saudet
Copy link
Member

saudet commented Dec 27, 2014

Fix included in version 0.10. Thanks for reporting!

@saudet saudet closed this as completed Dec 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants