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

static Mat.createFrom() missing #1

Closed
medloh opened this issue May 5, 2014 · 2 comments
Closed

static Mat.createFrom() missing #1

medloh opened this issue May 5, 2014 · 2 comments
Labels

Comments

@medloh
Copy link

medloh commented May 5, 2014

On 05/03/2014 01:07 AM,

Well, I guess nevermind. Looks like it works if I give the opencv_core.Mat constructor the width, height, and type:

 opencv_core.Mat mm = new opencv_core.Mat(matFace.rows(), matFace.cols(), matFace.type()); 

It would be nice if I didn't need to provide those--pretty sure the OpenCV java bindings don't require that when using copyTo(). But not a big deal.

There's Mat.createFrom() that should do what you need:
https://github.com/bytedeco/javacpp-presets/blob/master/opencv/src/main/java/org/bytedeco/javacpp/helper/opencv_core.java#L2300
But whoops, I forgot to put them static. I'll be fixing that.

If possible, please open an issue here (just copy/paste), thanks!

saudet added a commit that referenced this issue May 6, 2014
…t.copyFrom()` call `Mat.create()` as appropriate (issue #1)
@saudet saudet added the bug label May 6, 2014
@saudet
Copy link
Member

saudet commented May 6, 2014

@saudet
Copy link
Member

saudet commented Aug 4, 2014

Fixed in version 0.9. Thanks for reporting!

@saudet saudet closed this as completed Aug 4, 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