Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is the best way to setup GPU acceleration on Android?

Hi

I am trying to use OpenCV in my Android development (dev environment is Eclipse-ADT, Mac OS). I am trying to use JPEG 2000 format for image compression, I kind of found that it is slower and I do not see .jp2 file generated is bigger than my original .png file.

I would like to setup CUDA acceleration on my Android machine and try to improve the performance. Do I need to do a build with CUDA enabled etc or is there a simple binary download available?

Thanks you

MB

What is the best way to setup GPU acceleration on Android?

Hi

I am trying to use OpenCV in my Android development (dev environment is Eclipse-ADT, Mac OS). I am trying to use JPEG 2000 format for image compression, I kind of found that it is slower and I do not see .jp2 file generated is bigger than my original .png file.file (I am setting CV_IMWRITE_JPEG_QUALITY etc). Here is sample code that I am using

    Mat imgMat = new Mat();
    Utils.bitmapToMat(imgBitmap, imgMat);
    MatOfInt params = new MatOfInt(Highgui.CV_IMWRITE_JPEG_QUALITY, 10);

    Mat mIntermediateMat = new Mat();
    Imgproc.cvtColor(imgMat, mIntermediateMat, Imgproc.COLOR_RGBA2BGR, 3);

    boolean writeFlag = Highgui.imwrite(file.toString(), mIntermediateMat, params);

I would like to setup CUDA acceleration on my Android machine and try to improve the performance. Do I need to do a build with CUDA enabled etc or is there a simple binary download available?

Thanks you

MB