2016-04-27 14:03:34 -0500 received badge ● Scholar (source) 2016-04-21 13:48:22 -0500 commented question OpenCV4Android - BilateralFilter Problems That did it... Thanks. I didn't even think that might cause a problem. 2016-04-21 10:17:18 -0500 commented question OpenCV4Android - BilateralFilter Problems Updated Code to be a 3-Channel but something else must be wrong. 2016-04-21 08:59:59 -0500 asked a question OpenCV4Android - BilateralFilter Problems So I'm attempting to use a bilateralFilter and it's crashing for reasons unknown to me. I'm following these as a guide and I'm not seeing anything wrong: http://opencvexamples.blogspot.com/20... http://docs.opencv.org/2.4/doc/tutori... private Mat sharpen(Mat passedImage) { Mat bilateral = passedImage.clone(); Imgproc.cvtColor(bilateral, bilateral, Imgproc.COLOR_BGRA2BGR); int iSize = 9; Imgproc.bilateralFilter(bilateral, bilateral, iSize, iSize*2, iSize/2); return bilateral; }  2016-04-13 16:13:19 -0500 asked a question OpenCV4Android - calcCovarMatrix for image averages So I have two RBG averages that I want to get a Mahalanobis distance for. The Mahalanobis function requires an inverse co-variance matrix. My question is how do I create a inverse co-variance matric for averages? The averages would just be two 1x3 vectors but those averages come from a single image that's 27x27. The image looks similar to this: One of the averages is for an estimate of the average RBG values for inside the circle and the other is outside the RBG values outside the circle. Is it as simple as creating two images one with the inside of the circle and filling the background with my average circle values and another with the background and filling in the circle with my average background values? From what I've read the inverse co-variance matrix would need to be a 3x3 so I don't think that can work... Mat coloredImage = colorImage.clone(); Mat threshedImage = threshImage.clone(); Mat mask = new Mat(coloredImage.size(), CvType.CV_8UC1, Scalar.all(255)); Core.circle(mask, new Point(mask.rows() / 2, mask.cols() / 2), (int) mR, Scalar.all(0), -1, 8, 0); Bitmap gridBitmap = Bitmap.createBitmap(mask.width(), mask.height(), Bitmap.Config.ARGB_8888); Utils.matToBitmap(mask, gridBitmap); double externalRed = 0; double externalGreen = 0; double externalBlue = 0; int externalCount = 0; double internalRed = 0; double internalGreen = 0; double internalBlue = 0; int internalCount = 0; //FIXME: Revisit when I have a better understanding of masks in OpenCV - Masks appear to only effect 1 channel for (int column=0; column