@BonozoApps
unread,May 15, 2012, 1:43:27 PM5/15/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to android...@googlegroups.com
Dear OpenCV Android users,
Is it possible to use cvCreateImage in .java source? I have been unsuccessful in finding the right way to use such an API in Java for OpenCV Android.
I am trying to execute this code in Sample1View.java inside the Tutorial 1 (Basic) - Add OpenCV sample :
/* Copy mask into a grayscale image */
IplImage *hough_in = cvCreateImage(size, 8, 1);
cvCopy(mask, hough_in, NULL);
cvSmooth(hough_in, hough_in, CV_GAUSSIAN, 15, 15, 0, 0);
/* Run the Hough function */
CvMemStorage *storage = cvCreateMemStorage(0);
CvSeq *circles = cvHoughCircles(hough_in, storage,
CV_HOUGH_GRADIENT, 4, size.height/10, 100, 40, 0, 0);
cvReleaseMemStorage(&storage);
Thank you very much for your insights, time, and direction. It truly is appreciated. I will not be surprised to find out I cannot do this. The native samples ("Advanced") are not executing for me on a Samsung Galaxy S2.