Exemple #1
0
        public void PickCorrelateLayer()
        {
            var layer = new Layer(_image, "test", ImageType.Rgb);
            var c     = new Coordinate <int>(_width / 2, _height / 2);

            Assert.IsNull(_image.PickCorrelateLayer(c));

            _image.InsertLayer(layer, 0);

            var picked = _image.PickCorrelateLayer(c);

            Assert.AreEqual(layer, picked);
        }