Ask Your Question

[email protected]'s profile - activity

2020-10-10 02:57:13 -0600 received badge  Student (source)
2019-02-16 09:03:05 -0600 received badge  Supporter (source)
2019-02-16 09:03:02 -0600 marked best answer How to use setTo() in JAVA
    Mat gray = new Mat();
    Utils.bitmapToMat(grayBitmap,gray);
    Mat blocks = new  Mat(gray.size(),gray.type());
    Core.randu(blocks,0,1);
    blocks.setTo(0,blocks<0.3);
    blocks.setTo(1,blocks>0.3);

I use android studio to build the code, but it told me that "Operator '>' cannot be applied to 'org.opencv.core.Mat', 'double' " for blocks >/<0.3 parts, is that mean I cant use this method in Java or I need to add something else?

2019-02-05 14:19:25 -0600 asked a question How to use setTo() in JAVA

How to use setTo() in JAVA Mat gray = new Mat(); Utils.bitmapToMat(grayBitmap,gray); Mat blocks = new Mat(g

2019-01-30 15:57:01 -0600 asked a question Wiener Filter OpenCV (Java)

Wiener Filter OpenCV (Java) I am trying to design a Wiener Filter by using android studio,code is following public voi

2019-01-22 02:55:35 -0600 received badge  Enthusiast
2019-01-21 20:59:53 -0600 edited question How to add Gaussian noise in JAVA

How to add Gaussian noise in JAVA Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap =

2019-01-21 20:58:51 -0600 edited question How to add Gaussian noise in JAVA

How to add Gaussian noise in JAVA Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap =

2019-01-21 20:58:31 -0600 edited question How to add Gaussian noise in JAVA

How to add Gaussian noise in JAVA Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap =

2019-01-21 20:57:01 -0600 edited question How to add Gaussian noise in JAVA

How to add Gaussian noise in JAVA Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap =

2019-01-21 20:56:42 -0600 edited question How to add Gaussian noise in JAVA

How to add Gaussian noise in JAVA Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap =

2019-01-21 20:55:22 -0600 commented answer How to add Gaussian noise using JAVA

Thank you for your reply, but I think this noise is too big, I just want a noise which mean is 0 and dev is 0.1, so I u

2019-01-21 20:32:55 -0600 edited question How to add Gaussian noise in JAVA

How to add Gaussian noise in JAVA Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap =

2019-01-21 20:30:45 -0600 edited question How to add Gaussian noise in JAVA

How to add Gaussian noise in JAVA Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap =

2019-01-21 20:30:45 -0600 received badge  Editor (source)
2019-01-21 20:24:00 -0600 asked a question How to add Gaussian noise in JAVA

How to add Gaussian noise in JAVA Mat img = new Mat(); Utils.bitmapToMat(grayBitmap,img); noiseBitmap = gra

2019-01-21 20:19:08 -0600 asked a question Gaussian noise Java

Gaussian noise Java public void addGaussianNoise(View v){ Mat img = new Mat(); Utils.bitmapToMat(grayBit

2019-01-09 16:14:37 -0600 marked best answer How to add Gaussian noise using JAVA
    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.

2019-01-09 16:14:37 -0600 received badge  Scholar (source)
2019-01-08 17:30:27 -0600 asked a question How to add Gaussian noise using JAVA

How to add Gaussion noise use JAVA Mat grayMat = new Mat(); Mat noiseMat = new Mat(); BitmapFactory.Options