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

Where are CvPoint and CvScalar constructors? #15

Closed
MkrMkr opened this issue Jun 28, 2014 · 1 comment
Closed

Where are CvPoint and CvScalar constructors? #15

MkrMkr opened this issue Jun 28, 2014 · 1 comment
Labels

Comments

@MkrMkr
Copy link

MkrMkr commented Jun 28, 2014

In many places in my project I used similar lines:
CvScalar scalar=new CvScalar(0,1,2,3);
CvPoint point = new CvPoint(0,0)

then I changed library imports from com.googlecode. .... to org.bytedeco.javacpp. ...
(and library version from 0.7 to 0.8)

Now, although I use in my project this lines:
import org.bytedeco.javacpp.opencv_core.CvScalar;
import org.bytedeco.javacpp.opencv_core.CvPoint;

I don't see proper constructors (and generally class:
public static class CvScalar extends Pointer{..}).
Am I missed something or they shouldn't be avaible in ver. 0.8?

@saudet
Copy link
Member

saudet commented Jun 29, 2014

Those constructors are one thing I wasn't able to get working with the switch to JavaCPP Presets. They are not part of the original C API, so it's not such a big issue I thought. Instead, we can use the cvScalar() and cvPoint() "factory function" as per the original C API.

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