예제 #1
0
        private IMask getBlurredMask(List <Vector2> oldpoints)
        {
            IMask mask = obtainBluredMask(oldpoints, _layerLocalParameters.BlurSize, _layerLocalParameters.ExtendSize);

            mask = _layerUtility.Blur(mask, 5);
            mask = _layerUtility.Blur(mask, 5);
            return(mask);
        }
예제 #2
0
        protected IMask obtainBluredMask(IList <Vector2> points, int blurSize, int extendSize)
        {
            IMask mask  = _layUtils.GetMaskForPoints(points);
            var   layer = _layUtils.ExtendLayer(mask, extendSize);

            layer = _layUtils.Blur(layer, blurSize);
            layer = _layUtils.Blur(layer, blurSize);
            layer = _layUtils.Blur(layer, 15);
            _layUtils.Normalize(layer);
            return(layer);
        }