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); }
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); }