Exemple #1
0
        public void CovarianceEstimation()
        {
            const int windowSize = 7;

            using var src = Image("lenna.png", ImreadModes.Grayscale);
            using var dst = new Mat();
            CvXImgProc.CovarianceEstimation(src, dst, windowSize, windowSize);
            // TODO
            Assert.Equal(windowSize * windowSize, dst.Rows);
            Assert.Equal(windowSize * windowSize, dst.Cols);
            Assert.Equal(MatType.CV_32FC2, dst.Type());
        }
Exemple #2
0
        public void CovarianceEstimation()
        {
            const int windowSize = 7;

            using (var src = Image("lenna.png", ImreadModes.GrayScale))
                using (var dst = new Mat())
                {
                    CvXImgProc.CovarianceEstimation(src, dst, windowSize, windowSize);
                    // TODO
                    Assert.That(dst.Rows, Is.EqualTo(windowSize * windowSize));
                    Assert.That(dst.Cols, Is.EqualTo(windowSize * windowSize));
                    Assert.That(dst.Type(), Is.EqualTo(MatType.CV_32FC2));
                }
        }