Ask Your Question

anb0483's profile - activity

2015-05-26 10:32:00 -0600 asked a question Find poly contours

Hello, I'm transforming an 'older' code wich is using IplIimage to the new c++ format. Actually I'm missing the function 'cvStartFindContours'. Can anyone help me, how to transfer this 'find poly contours' function to the new c++ standard?

> tInt find_poly_contours(IplImage*
> grayImg, CvMemStorage* storage,
> CvSeq** firstContour, tFloat64 eps) {
>   CvContourScanner scanner = 0;   CvSeq
> *contour = 0;     tInt count = -1;    tInt sub = 0;   tFloat64 area;
> 
>   //  if (!firstContour)
> LOG_DUMP("Error->find_contours:= NULL
> double CvSeq pointer");
>   //  *firstContour = 0;
> 
>   scanner =
> cvStartFindContours(grayImg, storage,
> sizeof(CvContour), CV_RETR_TREE,
> CV_CHAIN_APPROX_SIMPLE, cvPoint(0,
> 0));  while (1){      count++;        contour
> = cvFindNextContour(scanner);         if (contour == NULL) break;         area =
> cvContourArea(contour, CV_WHOLE_SEQ,
> 0);       // tree pruning         if (area < 6
>           || contour->total < 4           ){
>           cvSubstituteContour(scanner, 0);
>           sub++;          count--;        }   }
>   *firstContour =
> cvEndFindContours(&scanner);  if
> (count != 0){         *firstContour =
> cvApproxPoly(*firstContour,
> sizeof(CvContour), storage,
> CV_POLY_APPROX_DP, eps, 1); //
> recursive     }
> 
>   //LOG_DUMP(cString::Format("Num of
> Cont in find_contours (%d) and number
> sub (%d)",count, sub));
> 
>   return count; }
2015-05-22 07:41:31 -0600 commented question IplImage Type in OpenCV-2.4.10-android-sdk

summarized it is not possible to use IplImage under Android or?, without the use of javacv?

2015-05-22 04:10:17 -0600 asked a question IplImage Type in OpenCV-2.4.10-android-sdk

It is not clear for my why the data typ

'IplImage'

is not workin with Android!The type is mentioned in documentation 2.4.10. Also the 2.1 Mat - The Basics Image Container says:

Luckily C++ came around and introduced the concept of classes making easier for the user through automatic memory management (more or less). The good news is that C++ is fully compatible with C so no compatibility issues can arise from making the change. Therefore, OpenCV 2.0 introduced a new C++ interface which offered a new way of doing things which means you do not need to fiddle with memory management, making your code concise (less to write, to achieve more).

2015-05-21 02:22:24 -0600 received badge  Enthusiast
2015-05-20 07:46:00 -0600 asked a question javaCV vs. OpenCVAndroid-SDK

Can someone explain me the difference?

OpenCVAndroid-SDK, official supported from OpenCv, but what is javaCV?, is it working with android also?

2015-05-20 04:48:10 -0600 asked a question OpenCv Android and 'IplImage*' type

I'm trying to use a simple call, which is working at Visual Studio and C++ and OpenCv!

IplImage* in = cvLoadImage("C:\Bilder\Bild1.png");

But with OpenCV-2.4.10-android-sdk and Eclipse it isnt, I'm getting this error:

IplImage cannot be resolved to a type

2015-04-16 04:38:55 -0600 received badge  Student (source)
2015-04-16 02:39:42 -0600 asked a question Wrapping a C++ class to the Java

Hello together,

i want to wrap a C++ program with included "OpenCV library" to Java! Is there any tutorial available how to do this?

I found the "Face detection sample" in the OpenCV-Android-Package which is mentioned in the "How to start" guide from http://opencv.org/platforms/android.html. There I can find the wrapper and the Java interface ... but I'm missing a tutorial, or a "how to" i can wrap my own C++ project with included "OpenCV library" to Java!

Have anyone an idea, where i can find a guide which lead me to wrapping my C++ project to Java?

Thanks guys, Andi