Ask Your Question

comwizz2's profile - activity

2013-06-10 14:19:03 -0600 commented question openCV 2.4.5. and Submatrices

This question would be alot easier to answer with a little more info. What kind of image, RGB RGBA Grayscale? More importantly, what language are you trying to do this under?

2013-06-10 14:07:54 -0600 received badge  Teacher (source)
2013-06-10 11:32:21 -0600 received badge  Editor (source)
2013-06-10 10:29:20 -0600 answered a question Convert c++ code to java code

From the looks of the quick google searches and documentation, there is no full Highgui implementation in Java, which means no imshow, NamedWindow, ResizeWindow, WaitKey or ShowImage.

Using Java, you should not need createMemStorage, Java handles that kind of stuff for you, that is for c (not even c++ needs it according to the docs!) version of the library.

The rest seem to mostly be in the org.opencv.imgproc namespace, which is explained in that link you provided ;P

Also you shouldn't need create mat, you should make a new instance of the Mat class. see org.opencv.core.Mat

Also most of those constants are not exactly the same name, but they are found in the Java docs. org.opencv.core.Point replaces CvPoint2D32f. Take the time to really look in the docs. If you are using a different language you have to expect some differences, especially given Java's strict memory management system when compared to the lofty C binding you are comparing it to.