2019-12-09 03:54:45 -0500 commented answer How to calculate the value of the glcm feature? thank you, the code above works fine. Then how to calculate contrast, correlation, homogeneity? how do you get the value 2019-12-09 03:35:12 -0500 marked best answer How to calculate the value of the glcm feature? My code just arrived at matrix normalization, how to calculate the value of glcm features such as entropy, energy, contrast, correlation, and homogeneity. Here is the code private void Classification() { Mat gl = Mat.zeros(256, 256, CvType.CV_64F); Mat glt = gl.clone(); //Create GLCM d= 1 , angle = 0 for (int y = 0; y < finalResult.rows(); y++) { for (int x = 0; x < finalResult.cols()-1; x++) { int i = (int) finalResult.get(y, x); int j = (int) finalResult.get(y, x + 1); double[] count = gl.get(i, j); count++; gl.put(i, j, count); } } //GLCM Transpose Core.transpose(gl, glt); //Symmetric Matrix Core.add(gl, glt, gl); //Matrix Normalization Scalar sum = Core.sumElems(gl); Core.divide(gl, sum, gl);  2019-12-09 03:35:12 -0500 received badge ● Scholar (source) 2019-12-08 06:33:41 -0500 commented answer How to calculate the value of the glcm feature? Sorry before, the above code still occurs error. The error is "Cannot resolve metode sum" 2019-11-28 01:25:33 -0500 commented answer How to calculate the value of the glcm feature? Thanks for helping 2019-11-25 20:39:13 -0500 asked a question How to calculate the value of the glcm feature? How to calculate the value of the glcm feature? My code just arrived at matrix normalization, how to calculate the value 2019-11-18 14:28:54 -0500 edited question how to remove black background from thresholding output in Opencv Android? how to remove black background from thresholding output? Hi, I am using OpenCV android library thresholding method for i 2019-11-18 14:20:54 -0500 edited question how to remove black background from thresholding output in Opencv Android? how to remove black background from thresholding output? Hi, I am using OpenCV android library thresholding method for i 2019-11-18 14:19:35 -0500 asked a question how to remove black background from thresholding output in Opencv Android? how to remove black background from thresholding output? Hi, I am using OpenCV android library thresholding method for i 2019-11-16 10:17:53 -0500 asked a question can roi use binary mask for segmentation? can roi use binary mask for segmentation? can anyone teach me about the source code thanks 2019-10-25 01:35:59 -0500 commented question How to remove the background image background transparent 2019-10-24 07:01:16 -0500 received badge ● Enthusiast 2019-10-23 08:04:28 -0500 edited question How to remove the background image How to remove the background image I'm working on the Opencv project on Android. When I segmented images, I didn't know 2019-10-23 08:03:45 -0500 received badge ● Editor (source) 2019-10-23 08:03:45 -0500 edited question How to remove the background image How to remove the background image I'm working on the Opencv project on Android. When I segmented images, I didn't know 2019-10-23 07:57:02 -0500 asked a question How to remove the background image How to remove the background image I'm working on the Opencv project on Android. When I segmented images, I didn't know 2019-10-18 06:01:13 -0500 commented question Can anyone convert this syntax to java code "sure_fg = cv.threshold(dist_transform,0.7*dist_transform.max(),255,0);" i try java code tutorial but error 2019-10-09 01:34:16 -0500 asked a question OpenCV(3.4.3) Error: Assertion failed (src.type() == CV_8UC3 && dst.type() == CV_32SC1) in void cv::watershed(cv::InputArray, cv::InputOutputArray) OpenCV(3.4.3) Error: Assertion failed (src.type() == CV_8UC3 && dst.type() == CV_32SC1) in void cv::watershed(cv 2019-10-08 01:00:53 -0500 asked a question How to get distance_transform.max() in android studio How to get distance_transform.max() in android studio Can anyone convert this syntax to java code "sure_fg = cv.thresho 2019-10-08 01:00:52 -0500 asked a question Can anyone convert this syntax to java code "sure_fg = cv.threshold(dist_transform,0.7*dist_transform.max(),255,0);" Can anyone convert this syntax to java code "sure_fg = cv.threshold(dist_transform,0.7*dist_transform.max(),255,0);" Can