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); }
private ILayerMasked getBlurredProfile(List <Vector2> oldpoints, Vector2 resolution) { var canyonProfile = getCanyonProfile(oldpoints, resolution); _layerUtility.Normalize(canyonProfile); _logger.Log(canyonProfile, "canyonProfile"); var blured = _layerUtility.Blur(canyonProfile, 5); blured = _layerUtility.Blur(blured, 5); blured = _layerUtility.Blur(blured, 5); _logger.Log(blured, "bluredProfile"); return(blured); }