private BlurMap CreateBlurFunction(FloatMapImage depthMap) { BlurMap blur; if (depthMap != null) { thinLensBlur.DepthMap = depthMap; blur = thinLensBlur; } else { int maxBlurRadius = (int)blurRadiusNumeric.Value; blur = new ConstantBlur(maxBlurRadius - 1); } return(blur); }
private BlurMap CreateBlurFunction(FloatMapImage depthMap) { BlurMap blur; if (depthMap != null) { thinLensBlur.DepthMap = depthMap; blur = thinLensBlur; } else { int maxBlurRadius = (int)blurRadiusNumeric.Value; blur = new ConstantBlur(maxBlurRadius - 1); } return blur; }