1 | initial version |
what you want is simply:
Mat kernel = new Mat( 5,5, CvType.CV_32F, new Scalar(1.0/25));
there's a couple of things wrong with your previous approach:
2 | No.2 Revision |
what you want is simply:
Mat kernel = new Mat( 5,5, CvType.CV_32F, new Scalar(1.0/25));
or, more complicated:
Mat kernel = Mat.ones(5,5, CvType.CV_32F);
Core.divide(1.0/25, kernel, kernel);
there's a couple of things wrong with your previous approach:
3 | No.3 Revision |
what you want is simply:
Mat kernel = new Mat( 5,5, CvType.CV_32F, new Scalar(1.0/25));
or, more complicated:
Mat kernel = Mat.ones(5,5, CvType.CV_32F);
Core.divide(1.0/25, kernel, kernel);
there's a couple of things wrong with your previous approach: