コード例 #1
0
        public static INoiseFilter CreateNoiseFilter(NoiseSettings settings)
        {
            switch (settings.filtertype)
            {
            case NoiseSettings.FilterType.Rigid:
            {
                return(new RigidNoiseFilter(settings));
            }

            case NoiseSettings.FilterType.Simple:
            {
                return(new SimpleNoiseFilter(settings));
            }

            default:
            {
                throw new System.Exception("Unknown Noise Type: " + settings.filtertype);
            }
            }
        }
コード例 #2
0
 public SimpleNoiseFilter(NoiseSettings settings)
 {
     this.settings = settings;
     noise         = new Noise3D();
 }
コード例 #3
0
 public RigidNoiseFilter(NoiseSettings settings)
 {
     this.settings = settings;
     noise         = new Noise3D();
 }