Ask Your Question

Neel Gohel's profile - activity

2019-10-23 02:01:54 -0600 received badge  Popular Question (source)
2016-12-28 04:18:36 -0600 commented answer How to create Mat from rgb 2d arrays?????

Thanks again berak :D

2016-12-28 01:24:17 -0600 asked a question How to create Mat from rgb 2d arrays?????

Mat om=new Mat();

double[] rx=new double[3];

for(int i=0;i< sizeA.height;i++)

{

for(int j=0;j< sizeA.width;j++)

{

        rx[0]=r3[i][j];

        rx[1]=g3[i][j];

        rx[2]=b3[i][j];

        om.put(i, j, rx);

}

}

I am using this code but I am not getting any output for the given code.

r3,g3 and b3 are the rgb arrays & sizeA is Size of the Mat.

2016-12-27 05:31:14 -0600 commented question How do I convert 2d matrix in to a grayscale image in java????

How to do it using opencv?

2016-12-27 00:50:16 -0600 asked a question I am converting Matlab code in to java code, Plz Help me with some matlab functions and tell equivelent java function.

rgbfcm=cast(o,class(y)); redPlane = y(:, :, 1).rgbfcm; greenPlane =y(:, :, 2).rgbfcm; bluePlane = y(:, :, 3).*rgbfcm; fcmrgb = cat(3, redPlane,greenPlane, bluePlane);

Please tell me how to use these functionalities in Java.......

2016-12-27 00:46:18 -0600 received badge  Enthusiast
2016-12-26 03:25:22 -0600 asked a question How do I convert 2d matrix in to a grayscale image in java????

double[][] x=new double[800][600];

Now I want to convert x into a grayscale image.

I want functionality of matlab function mat2gray.

https://in.mathworks.com/help/images/...

2016-12-23 01:06:12 -0600 commented question How to convet mat to a double array in java????

I have a piece of code in Matlab, I am converting it to java.

2016-12-23 00:47:18 -0600 asked a question How to convert double array into grayscale image?

double[] x;

I want to convert rm into gray-scale image. x is matrix.

2016-12-22 23:04:02 -0600 asked a question How to convet mat to a double array in java????
Mat im= Imgcodecs.imread(d);
Mat inp=new Mat();
Mat newinp=new Mat();
inp.convertTo(newinp, CvType.CV_64F);
java.util.List<Mat> rgb=null;
Core.split(newinp, rgb);
Mat r1=rgb.get(0);
Mat g1=rgb.get(1);
Mat b1=rgb.get(2);
double[] r = null;
double[] b=null;
double[] g=null;

Now I want to convert Mat r1 to double[] r, Mat g1 to double[] g and Mat b1 to double[] b. What should I do???????

2016-12-22 03:34:36 -0600 commented answer How to do element wise division in java using Mat.mul?

oh I forgot that thing, Thank you for help berak....:D

2016-12-22 03:30:59 -0600 commented answer How to do element wise division in java using Mat.mul?

But will Core.divide do element wise division?

2016-12-22 03:29:44 -0600 commented question How to do element wise division in java using Mat.mul?

Mat m1=new Mat(); Mat m2=new Mat();

Now I want to divide m1 & m2 elementwise, So what should be scalar value?

2016-12-22 03:13:33 -0600 asked a question How to do element wise division in java using Mat.mul?

Suppose I have to Mat,i want to do element wise division(m1./m2), Then how to do it using Mat.mul method?

2016-12-20 05:21:30 -0600 commented answer How do I remove image background in Java using OpenCV?

Thank You berak

2016-12-20 05:20:46 -0600 received badge  Scholar (source)
2016-12-20 05:20:46 -0600 received badge  Supporter (source)
2016-12-20 01:28:24 -0600 commented question How do I remove image background in Java using OpenCV?

I have an image with white background, I want to remove that white background from image and save it to another destination.

2016-12-20 00:46:21 -0600 commented answer How do I remove image background in Java using OpenCV?

Can u help me with an java example?????

2016-12-19 11:16:23 -0600 asked a question How do I remove image background in Java using OpenCV?

I want to remove background from a single image. But i cant remove background using BackgroundSubtractorMOG2.