Exemple #1
0
        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);
        }
Exemple #2
0
 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;
 }