Ask Your Question

PrasadimageIn's profile - activity

2015-03-19 23:37:59 -0500 commented question how to convert color image into grayscale in android

Hi berak, I tried your suggestion, but still my app is getting crashed.

2015-03-18 23:58:59 -0500 asked a question how to convert color image into grayscale in android

Hello Everyone.

I'm developing an Image processing app in Android using OpenCV library. I want to convert the color image into grayscale, when user selects image from the SD card. I've used the below code -

        Bitmap b = BitmapFactory.decodeFile(picturePath);
        Mat tmp = new Mat (b.getWidth(), b.getHeight(), CvType.CV_8UC1);
        ImageView imgView = (ImageView) findViewById(;
        Utils.bitmapToMat(b, tmp);
        Imgproc.cvtColor(tmp, tmp, Imgproc.COLOR_BGR2GRAY,0);            
        Utils.matToBitmap(tmp, b);

there is no compile time error in this code. But when I run this app in my smartphone, the app gets crashed and sends an messsage as - unfortunately the app stopped working. Kindly provide me the correct code to solve this issue. Thank you in advance.

2015-03-16 23:14:59 -0500 asked a question Adding OpenCV library in Android

Hello everyone.

I'm developing an Android application for image processing using OpenCV concepts in Eclipse Luna. I'm a newbie in this stream. Please provide me the steps of adding OpenCV library in Eclipse Luna. Thank you in advance.

2015-03-12 01:02:09 -0500 asked a question Emgu.CV.CvInvoke exception

Hello everyone.

I'm new to image proccessing concepts. I've developed an image processing application on C#.Net platform using Emgu CV wrapper classes and I've deployed it on Microsoft Azure Cloud. When I run my application on Azure cloud i'm getting following error as : -

Error Stack Trace -

at Emgu.CV.CvInvoke.cvCreateImageHeader(Size size, IPL_DEPTH depth, Int32 channels) at Emgu.CV.Image2.AllocateData(Int32 rows, Int32 cols, Int32 numberOfChannels) at Emgu.CV.Image2.set_Bitmap(Bitmap value) at NnSmAzWebRole._Default.BtnProcs_Click(Object sender, EventArgs e)

Error Message -

The type initializer for 'Emgu.CV.CvInvoke' threw an exception.

But when I run the same application locally at my PC it is running smoothly. I've uploaded all the necessary Emgu CV & OpenCV DLL's on Azure cloud same as what i use to locally run the application on my PC. Please provide me some solutions to solve this problem. Thank you in advance.