Mat grayMat = new Mat();
Mat noiseMat = new Mat();
BitmapFactory.Options o = new BitmapFactory.Options();
o.inDither=false;
o.inSampleSize=1;
int width = grayBitmap.getWidth();
int height= grayBitmap.getHeight();
noiseBitmap=Bitmap.createBitmap(width,height,Bitmap.Config.ALPHA_8);
//bitmap to MAT
Utils.bitmapToMat(grayBitmap,grayMat);
GaussianNoise = grayMat.clone();
I don't know how to do next, to generate a Mat which is the same size as grayMat and then add them together.