Ask Your Question

mahabudhi's profile - activity

2016-10-17 21:41:28 -0600 received badge  Notable Question (source)
2015-12-19 05:09:15 -0600 received badge  Popular Question (source)
2014-11-06 17:43:56 -0600 received badge  Student (source)
2013-11-01 16:54:12 -0600 commented answer How to generate/convertto 1 bit depth image

Thank you Douglas, but when I write the Mat (the resultant Mat) object using imwrite to a file as PNG file, the file properties show the 'bit depth' as '8' rather than '1'.

Is there special way I need to use imwrite to accomplish this or some other technique exists.

Thanks

MB

2013-11-01 16:12:02 -0600 asked a question How to generate/convertto 1 bit depth image

I am new to OpenCV, I am trying to generate a 1 bit image using OpenCV APIs. Is this possible? Can someone point me to right API.

Thank you

MB

2013-10-08 16:04:28 -0600 commented answer What is the best way to setup GPU acceleration on Android?

Thank you, so the Android Manager that gets installed has all the HW optimizations for a specific platform. It all started, as I was generating a JPEG 2000 file which was taking longer time than (3x longer) JPEG file generation. I thought I am doing something wrong and lack of understanding of NVIDIA terminology/technology etc lead to a search in wrong direction. Thank you for your help.

2013-10-08 14:24:09 -0600 commented question Why the size of generated jp2 file is bigger than original PNG file?

opencv documentation says the compression type is determined by the file extension (.jp2 is for JPEG 2000). I do see smaller file sizes when I change the file extension to .jpg, so that part works, but not .jp2. But I can view generated .jp2 file using standard picture viewers etc

2013-10-08 13:48:22 -0600 asked a question Why the size of generated jp2 file is bigger than original PNG file?

I used OpenCV in my Android app to generate jpeg 2000 file. Input file is PNG file, I do see the output generated is bigger than the original file. I tried setting different parameters etc, but it did not help. What am I doing wrong here? Thanks for your help.

Here is the code snippet

    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);

Thank you

MB

2013-10-08 11:43:23 -0600 commented answer What is the best way to setup GPU acceleration on Android?

Agree I do not know much about CUDA or opencv for android. But I would like to use 'gpu' namespace for my android development, what is the best way to set that up, is there a documentation somewhere.

2013-10-07 14:11:45 -0600 received badge  Editor (source)
2013-10-07 14:08:16 -0600 asked a question 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 see .jp2 file generated is bigger than my original .png 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